/* ============================
   MODERN MODAL SYSTEM
============================ */

.modern-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modern-modal.hidden {
  display: none;
}

.modern-box {
  background: #10151d;
  width: 370px;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(78,245,138,0.28);
  box-shadow: 0 0 18px rgba(78,245,138,0.2);
  position: relative;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modern-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
}

/* ============================
   INPUTS
============================ */

.modern-input {
  width: 100%;
  padding: 12px;
  background: #0b0f14;
  border: 1px solid rgba(78,245,138,0.28);
  border-radius: 10px;
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 14px;
}

.modern-input:focus {
  outline: 2px solid #4ef58a;
}

/* ============================
   PASSWORD TOGGLE (SVG ICONS)
============================ */

.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap .modern-input {
  margin-bottom: 0;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.eye-icon {
  width: 20px;
  height: 20px;
  color: #9ca4b1;
  transition: 0.2s ease;
}

.toggle-password:hover .eye-icon {
  color: #ffffff;
}

.password-wrap + .password-wrap {
  margin-top: 12px;
}

/* ============================
   BUTTONS
============================ */

.modern-btn {
  width: 100%;
  padding: 14px;
  background: #4ef58a;
  border: none;
  font-weight: 900;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 16px;
  color: #0b0f14;
  transition: 0.2s ease;
}

.modern-btn:hover {
  opacity: 0.85;
}

.modern-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
  color: #4ef58a;
  transition: 0.2s ease;
}

.modern-close:hover {
  opacity: 0.6;
}

/* ============================
   ERROR / HINT TEXT
============================ */

.modal-hint {
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 0;
  display: block;
}

.modal-hint.invalid {
  color: #ff4b4b !important;
  font-weight: 600;
}

.modal-hint.valid {
  color: #4ef58a !important;
  font-weight: 600;
}

/* ============================
   TOASTS
============================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 900;
}

.toast {
  background: #10151d;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(78,245,138,0.25);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(4px);
}
