/* css/login.css — extracted from login.html */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --brand:   #2B2640;
    --accent:  #6C63FF;
    --accent2: #48C9B0;
    --danger:  #e74c3c;
    --success: #27ae60;
    --bg:      #F4F1EA;
    --shadow:  0 20px 60px rgba(43,38,64,.13);
    --radius:  16px;
    --border:  #d0cce8;
  }

  body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image:
      radial-gradient(circle at 15% 15%, rgba(108,99,255,.10) 0%, transparent 50%),
      radial-gradient(circle at 85% 85%, rgba(72,201,176,.08) 0%, transparent 50%);
  }

  .wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* ── Logo box ── */
  .logo-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: var(--shadow);
  }
  .logo-icon {
    width: 62px; height: 62px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }
  .logo-icon svg { width: 32px; height: 32px; fill: #fff; }
  .logo-box h1  { font-size: 21px; color: var(--brand); font-weight: 700; }
  .logo-box p   { font-size: 13px; color: #999; margin-top: 4px; }

  /* ── Tab switcher ── */
  .tab-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 5px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 4px;
  }
  .tab-btn {
    flex: 1; padding: 10px;
    border: none; border-radius: 12px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    background: transparent; color: #999;
  }
  .tab-btn.active {
    background: var(--brand); color: #fff;
    box-shadow: 0 4px 14px rgba(43,38,64,.22);
  }

  /* ── Form box ── */
  .form-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 15px;
  }
  .form-box.active { display: flex; }
  .form-box h2 { font-size: 16px; color: var(--brand); font-weight: 700; }
  .form-box .sub { font-size: 12px; color: #bbb; margin-top: -10px; }

  /* ── Input ── */
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label { font-size: 12px; font-weight: 600; color: #666; }

  .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .input-wrap .ico {
    position: absolute;
    left: 12px;
    width: 18px; height: 18px;
    fill: #bbb;
    pointer-events: none;
  }
  .input-wrap input {
    width: 100%;
    padding: 11px 44px 11px 38px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px; color: #333;
    outline: none;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
  }
  .input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,.10);
    background: #fff;
  }

  /* ── Eye button — FIXED ── */
  .eye-btn {
    position: absolute;
    right: 0;
    top: 0; bottom: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 0 10px 10px 0;
  }
  .eye-btn svg {
    width: 18px; height: 18px;
    fill: #bbb;
    transition: fill .2s;
    display: block;
    pointer-events: none;
  }
  .eye-btn:hover svg { fill: var(--accent); }
  .eye-btn.visible svg { fill: var(--accent); }

  /* ── Primary button ── */
  .btn-primary {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: opacity .2s, transform .15s;
  }
  .btn-primary:hover  { opacity: .9; transform: translateY(-1px); }
  .btn-primary:active { transform: translateY(0); opacity: 1; }

  /* ── Divider ── */
  .divider {
    display: flex; align-items: center; gap: 10px;
    color: #ccc; font-size: 12px;
  }
  .divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: #eee;
  }

  /* ── Strength bar ── */
  .strength-row { display: flex; gap: 4px; }
  .seg { flex: 1; height: 4px; border-radius: 4px; background: #eee; transition: background .3s; }
  .s-label { font-size: 11px; color: #bbb; text-align: right; }

  /* ── Biometric box ── */
  .bio-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .bio-box p { font-size: 12px; color: #bbb; }
  .bio-btn {
    width: 62px; height: 62px;
    background: linear-gradient(135deg, var(--accent2) 0%, #2ecc71 100%);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(72,201,176,.35);
    transition: transform .2s, box-shadow .2s;
  }
  .bio-btn:hover  { transform: scale(1.08); box-shadow: 0 10px 28px rgba(72,201,176,.45); }
  .bio-btn:active { transform: scale(.97); }
  .bio-btn svg { width: 30px; height: 30px; fill: #fff; pointer-events: none; }
  .bio-label { font-size: 13px; font-weight: 600; color: var(--brand); }

  /* ── Toast ── */
  .toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--brand); color: #fff;
    padding: 12px 24px; border-radius: 24px;
    font-size: 13px; font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
    white-space: nowrap; z-index: 999;
    box-shadow: 0 8px 24px rgba(43,38,64,.3);
  }
  .toast.show  { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast.error   { background: var(--danger); }
  .toast.success { background: var(--success); }

  /* ── Loader overlay (shared with student.html / category.html) ── */
  #__loader__ {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    font-size: 15px;
  }
