:root {
    --brand-blue: #0F2B66;
    --brand-mid:  #1a3a8a;
    --ink:        #121826;
    --muted:      rgba(18,24,38,0.55);
    --line:       rgba(0,0,0,0.10);
    --off-white:  #f5f3ef;
    --white:      #ffffff;
    --shadow-md:  0 12px 40px rgba(0,0,0,0.12);
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html, body {
    min-height: 100vh;
    background: var(--off-white);
    color: var(--ink);
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  
  /* ── Page ── */
  .login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
  }
  
  /* ── Card ── */
  .login-card {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2.25rem;
    width: min(420px, 100%);
  }
  
  /* ── Logo ── */
  .login-logo {
    display: block;
    margin: 0 auto 1.5rem;
    width: fit-content;
  }
  .login-logo img {
    height: 52px;
    width: auto;
    display: block;
  }
  
  /* ── Heading ── */
  .login-heading {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-blue);
    text-align: center;
    margin-bottom: 0.35rem;
  }
  
  .login-sub {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1.75rem;
  }
  
  /* ── Form ── */
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .field-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
  }
  
  input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(0,0,0,0.13);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
    background: #fafafa;
    outline: none;
    transition: border-color 0.18s, background 0.18s;
  }
  input:focus {
    border-color: var(--brand-blue);
    background: var(--white);
  }
  input::placeholder { color: #aab0be; }
  
  /* ── Message ── */
  .login-message {
    font-size: 0.82rem;
    min-height: 1rem;
    display: block;
    text-align: center;
  }
  
  /* ── Button ── */
  .login-btn {
    margin-top: 4px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: var(--brand-blue);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(15,43,102,0.22);
  }
  .login-btn:hover { background: var(--brand-mid); transform: translateY(-1px); }
  .login-btn:active { transform: translateY(0); }
  .login-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
  
  /* ── Footer ── */
  .login-footer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
  }
  .login-footer a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
  }
  .login-footer a:hover { text-decoration: underline; }
  
  /* ── Show/hide password ── */
  .input-eye-wrap {
    position: relative; display: flex; align-items: center;
  }
  .input-eye-wrap input {
    padding-right: 42px;
  }
  .eye-btn {
    position: absolute; right: 12px;
    background: none; border: none; cursor: pointer;
    color: #aab0be; padding: 0; line-height: 1;
    display: flex; align-items: center;
    transition: color 0.15s;
  }
  .eye-btn:hover { color: #556079; }
  
  .forgot-link {
    background: none; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem; color: #B76558; font-weight: 600;
    padding: 0; text-decoration: none;
  }
  .forgot-link:hover { text-decoration: underline; }