/* ═══ AUTH MODAL ═══ */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: #0C0324; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; overflow: hidden;
  display: flex; width: 90%; max-width: 960px; height: 85vh; max-height: 750px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: #fff; }

.modal-left {
  flex: 1; padding: 40px 40px; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.modal-right {
  width: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #0C0324; padding: 20px;
}
.modal-right img {
  width: 100%; height: 100%; object-fit: contain;
}

.modal-logo { margin-bottom: 28px; }
.modal-logo img { height: 72px; width: auto; }

.modal-label {
  font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: #F5C518; text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 8px;
}
.modal-left h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem; font-weight: 600; margin-bottom: 10px; color: #fff;
}
.modal-left .subtitle {
  color: rgba(255,255,255,0.4); font-size: 0.88rem; line-height: 1.6;
  margin-bottom: 28px;
}

.modal-form { width: 80%; }
.modal-form .form-group { margin-bottom: 14px; }
.modal-form .form-group input {
  width: 100%; padding: 10px 16px;
  background: #fff; border: none; border-radius: 10px;
  color: #000; font-family: 'Nunito Sans', sans-serif; font-size: 0.9rem;
  outline: none;
}
.modal-form .form-group input::placeholder { color: rgba(0,0,0,0.4); }

.modal-form .btn-submit {
  width: 100%; padding: 12px; border-radius: 10px;
  background: #00BCB2; color: #fff; border: none;
  font-family: 'Nunito Sans', sans-serif; font-size: 1rem;
  font-weight: 700; cursor: pointer; transition: opacity 0.2s;
  margin-top: 6px;
}
.modal-form .btn-submit:hover { opacity: 0.9; }
.modal-form .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-form .btn-submit.pink { background: #F529A1; }

.modal-footer {
  margin-top: 20px; font-size: 0.85rem;
}
.modal-footer a {
  color: #F5C518; font-weight: 600; text-decoration: underline; cursor: pointer;
}

.modal-error {
  background: rgba(245,41,161,0.1); border: 1px solid rgba(245,41,161,0.3);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
  font-size: 0.82rem; color: #F529A1; display: none;
}
.modal-success {
  background: rgba(0,188,178,0.1); border: 1px solid rgba(0,188,178,0.3);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
  font-size: 0.82rem; color: #00BCB2; display: none;
}

/* Login modal: image on left */
.modal-login { flex-direction: row; }
.modal-right-login {
  width: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #0C0324; padding: 20px;
}
.modal-right-login img {
  width: 100%; height: 100%; object-fit: contain;
}

.modal-legal {
  margin-top: 28px; font-size: 0.78rem; color: rgba(255,255,255,0.3);
  line-height: 1.6; text-align: center;
}
.modal-legal a {
  color: #F5C518; font-weight: 700; text-decoration: none;
}

@media (max-width: 768px) {
  .modal { flex-direction: column; max-height: 95vh; }
  .modal-right, .modal-right-login { display: none; }
  .modal-left { padding: 32px 24px; }
}
