/* login-modal.css
   Minimal modal styling for the login modal.
   If you already use register-modal.css, you can skip this file; loader will try to attach it if present.
   This file intentionally keeps styles small and compatible with register-modal.css.
*/

.modal.hidden { display: none; }

/* Ensure modal-card and modal-logo inherit the same look as register modal */
.modal-card {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  padding: 28px 14px 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  background: linear-gradient(180deg, rgba(5,28,57,0.92) 0%, rgba(12,42,84,0.86) 60%, rgba(10,32,64,0.80) 100%);
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  backdrop-filter: blur(6px);
}

.modal-header { position: relative; display:block; margin-bottom:6px; text-align:left; }
#login-title { margin:0; font-size:17px; font-weight:700; color:#e8f2ff; }

/* Ensure logo placement matches register modal */
.modal-logo {
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  width:52px;
  height:52px;
  border-radius:50%;
  object-fit:cover;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 4px 12px rgba(2,6,23,0.6);
}

/* Form basics */
#login-form label { display:block; font-size:12px; margin-top:8px; color: rgba(255,255,255,0.88); }
#login-form input { width:100%; padding:8px 10px; margin-top:6px; border-radius:6px; border:none; font-size:13px; background: rgba(255,255,255,0.95); color: #0b2230; }

.error { color:#ffd6d6; font-size:12px; min-height:18px; margin-top:8px; }

.actions { display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }
button#l-submit { background: linear-gradient(180deg,#083f78 0%, #042b56 100%); color:#fff; border:none; padding:8px 12px; border-radius:6px; font-weight:700; cursor:pointer; }
button#l-cancel { background:transparent; color: rgba(255,255,255,0.95); border:1px solid rgba(255,255,255,0.08); padding:8px 10px; border-radius:6px; cursor:pointer; }

@media (max-width:420px){
  .modal-card { max-width:340px; padding:22px 12px 12px; }
  .modal-logo { width:46px; height:46px; top:-22px; }
}