/* ============================================================
   NEMSU Cagwait — Registrar Portal Login (index.php)
   Extracted from inline <style>. Edit here, not in index.php.
   ============================================================ */
:root {
  --primary:       #0f2d5e;
  --primary-hover: #0a2049;
  --primary-light: #1a3f80;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
/* Toast */
.toast-wrap {
  position: fixed; top: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column;
  gap: .5rem; pointer-events: none; align-items: center;
}
.toast {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1.25rem; border-radius: .625rem;
  font-size: .875rem; font-weight: 500;
  min-width: 280px; max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-120%); opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
  pointer-events: auto;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.hide { transform: translateY(-120%); opacity: 0; }
.toast-success { background:#fff; border-left:4px solid #16a34a; color:#15803d; }
.toast-error   { background:#fff; border-left:4px solid #dc2626; color:#b91c1c; }
.toast-icon { font-size:1.1rem; flex-shrink:0; }
.toast-close {
  margin-left:auto; cursor:pointer; opacity:.6;
  background:none; border:none; font-size:1rem; color:inherit;
}
.toast-close:hover { opacity:1; }
/* Card */
.login-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 40px rgba(15,45,94,.12);
  overflow: hidden;
  width: 100%; max-width: 900px;
  display: flex; min-height: 520px;
}
/* Brand panel */
.brand-panel {
  background: #0d1b4b;
  flex: 0 0 42%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2.5rem 2rem; color: #fff; text-align: center;
}
.brand-panel img { width:88px; height:88px; object-fit:contain; margin-bottom:1.25rem; filter:drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.brand-panel h2  { font-size:1.2rem; font-weight:700; letter-spacing:-.01em; margin-bottom:.35rem; line-height:1.35; }
.brand-panel p   { font-size:.78rem; opacity:.72; line-height:1.6; }
.brand-divider   { width:36px; height:3px; background:rgba(255,255,255,.3); border-radius:2px; margin:1rem auto; }
.brand-badge {
  margin-top:1.75rem;
  display:inline-flex; align-items:center; gap:.4rem;
  background:#0d1b4b;
  border:1px solid rgba(255,255,255,.22);
  border-radius:99px; padding:.35rem .9rem;
  font-size:.68rem; letter-spacing:.06em; text-transform:uppercase;
}
/* Form panel */
.form-panel {
  flex:1; display:flex; flex-direction:column;
  justify-content:center; padding:2.75rem 2.5rem;
}
.form-panel h1  { font-size:1.5rem; font-weight:700; color:var(--primary); margin-bottom:.25rem; }
.form-panel p.sub { font-size:.84rem; color:#64748b; margin-bottom:2rem; }
/* Fields */
.field { margin-bottom:1.25rem; }
.field label { display:block; font-size:.78rem; font-weight:600; color:#374151; margin-bottom:.4rem; letter-spacing:.02em; }
.field-inner { position:relative; }
.field-inner i.icon {
  position:absolute; left:.9rem; top:50%; transform:translateY(-50%);
  color:#94a3b8; font-size:.82rem; pointer-events:none;
}
.field input {
  width:100%; padding:.7rem .9rem .7rem 2.4rem;
  border:1.5px solid #e2e8f0; border-radius:.5rem;
  font-size:.9rem; color:#1e293b; background:#f8fafc;
  outline:none; transition:border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus {
  border-color:var(--primary); background:#fff;
  box-shadow:0 0 0 3px rgba(15,45,94,.1);
}
.toggle-pw {
  position:absolute; right:.85rem; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer;
  color:#94a3b8; font-size:.82rem; padding:0;
}
.toggle-pw:hover { color:var(--primary); }
/* Button */
.btn-login {
  width:100%; padding:.8rem;
  background:#0d1b4b; color:#fff;
  border:none; border-radius:.5rem;
  font-size:.95rem; font-weight:600; letter-spacing:.02em;
  cursor:pointer; margin-top:.5rem;
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  transition:background .2s, transform .15s, box-shadow .2s;
}
.btn-login:hover:not(:disabled) {
  background:#091440;
  box-shadow:0 4px 14px rgba(13,27,75,.3);
  transform:translateY(-1px);
}
.btn-login:disabled { opacity:.65; cursor:not-allowed; }
/* Remember */
.remember-row { display:flex; align-items:center; gap:.5rem; margin-bottom:1.25rem; }
.remember-row input[type=checkbox] { width:15px; height:15px; accent-color:var(--primary); cursor:pointer; }
.remember-row label { font-size:.82rem; color:#64748b; cursor:pointer; }
/* Footer */
.portal-footer { margin-top:2rem; padding-top:1.25rem; border-top:1px solid #f1f5f9; font-size:.74rem; color:#94a3b8; text-align:center; }
/* Responsive */
@media (max-width: 640px) {
  body { align-items:flex-start; padding-top:1.5rem; }
  .login-card { flex-direction:column; }
  .brand-panel { flex:none; padding:1.75rem 1.5rem 1.5rem; }
  .brand-panel img { width:60px; height:60px; }
  .brand-panel h2 { font-size:1rem; }
  .form-panel { padding:1.75rem 1.5rem; }
}
