/* Kiểu riêng trang — tách từ V3.7 dang-nhap.html (26/10/2026) */

  :root{
    --bg-dark:#13261C; --bg:#F4F6F4; --ink:#17201B; --muted:#5B6B61;
    --green:#1F7A4D; --green-2:#2E9E64; --green-soft:#E7F3EC;
    --amber:#E08A00; --amber-soft:#FDF3E0; --blue:#3B5FC0;
    --red:#B3261E; --red-soft:#FDECEA; --line:#DDE5DE; --card:#FFFFFF;
    --radius:16px;
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html,body{height:100%}
  body{
    font-family:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",sans-serif;
    background:var(--bg-dark); color:var(--ink);
    min-height:100vh; display:flex; flex-direction:column; align-items:center;
    padding:40px 16px 28px;
  }
  button,a,input{font-family:inherit}
  button{cursor:pointer}
  a{color:var(--green); font-weight:600; text-decoration:none}
  a:hover{text-decoration:underline}
  :focus-visible{outline:3px solid var(--green-2); outline-offset:2px; border-radius:6px}

  /* ---------- Brand ---------- */
  .brand{display:flex; align-items:center; gap:14px; margin-bottom:26px}
  .brand .k{
    width:52px; height:52px; border-radius:14px; background:var(--green-2);
    color:#fff; font-size:28px; font-weight:800; display:grid; place-items:center; flex:none;
  }
  .brand h1{color:#fff; font-size:22px; font-weight:700; line-height:1.15}
  .brand p{color:#9DB8A8; font-size:14px; margin-top:2px}

  /* ---------- Card ---------- */
  .card{
    background:var(--card); border-radius:20px; width:100%; max-width:480px;
    padding:30px 30px 26px; box-shadow:0 18px 44px rgba(0,0,0,.35);
  }
  .state{display:none}
  .state.active{display:block}
  .card h2{font-size:24px; font-weight:700; margin-bottom:8px}
  .card .lead{font-size:14.5px; line-height:1.55; color:var(--muted); margin-bottom:20px}
  .card .lead strong{color:var(--ink)}

  .btn-google{
    width:100%; min-height:54px; display:flex; align-items:center; justify-content:center; gap:12px;
    background:#fff; border:1.5px solid var(--line); border-radius:12px;
    font-size:16px; font-weight:700; color:var(--ink);
  }
  .btn-google:hover{border-color:var(--green-2); background:var(--green-soft)}
  .btn-primary{
    width:100%; min-height:54px; border:none; border-radius:12px; margin-top:14px;
    background:var(--green); color:#fff; font-size:16px; font-weight:700;
    display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none;
  }
  .btn-primary:hover{background:#18603D; text-decoration:none}
  .btn-ghost{
    width:100%; min-height:48px; border:1.5px solid var(--line); border-radius:12px; margin-top:10px;
    background:#fff; color:var(--ink); font-size:14.5px; font-weight:600;
    display:flex; align-items:center; justify-content:center; gap:8px;
  }
  .btn-ghost:hover{border-color:var(--green-2)}

  .divider{display:flex; align-items:center; gap:14px; margin:22px 0 18px; color:var(--muted); font-size:13.5px}
  .divider::before,.divider::after{content:""; flex:1; height:1px; background:var(--line)}

  label.field-label{display:block; font-size:14.5px; font-weight:600; margin-bottom:8px}
  input.code-input{
    width:100%; min-height:56px; border:1.5px solid var(--line); border-radius:12px;
    font-size:22px; letter-spacing:10px; text-align:center; color:var(--ink); background:#FBFCFB;
  }
  input.code-input:focus{border-color:var(--green-2); outline:none; box-shadow:0 0 0 3px var(--green-soft)}
  .note{font-size:13px; line-height:1.55; color:var(--muted); margin-top:14px}
  .note strong{color:var(--ink)}

  /* ---------- OTP 6 ô ---------- */
  .otp-row{display:flex; gap:8px; justify-content:space-between; margin:6px 0 4px}
  .otp-row input{
    width:56px; height:62px; flex:1; border:1.5px solid var(--line); border-radius:12px;
    font-size:26px; font-weight:700; text-align:center; color:var(--ink); background:#FBFCFB;
  }
  .otp-row input:focus{border-color:var(--green-2); outline:none; box-shadow:0 0 0 3px var(--green-soft)}
  .otp-actions{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; flex-wrap:wrap}
  .resend{font-size:13.5px; color:var(--muted)}
  .resend button{border:none; background:none; color:var(--green); font-size:13.5px; font-weight:700; padding:6px 2px; min-height:36px}
  .resend button:disabled{color:var(--muted); cursor:default; font-weight:500}
  .remember{display:flex; align-items:center; gap:10px; margin-top:16px; font-size:14px; cursor:pointer; min-height:44px}
  .remember input{width:20px; height:20px; accent-color:var(--green); flex:none}
  .alt-link{display:block; margin-top:14px; font-size:13.5px}

  /* ---------- Spinner ---------- */
  .spinner-wrap{display:flex; flex-direction:column; align-items:center; text-align:center; padding:18px 0 8px}
  .spinner{
    width:52px; height:52px; border-radius:50%;
    border:5px solid var(--green-soft); border-top-color:var(--green);
    animation:spin 0.9s linear infinite; margin-bottom:18px;
  }
  @keyframes spin{to{transform:rotate(360deg)}}
  .spinner-wrap h2{margin-bottom:6px}
  .spinner-wrap p{font-size:14.5px; color:var(--muted); line-height:1.55}

  /* ---------- Lỗi ---------- */
  .alert-error{
    display:flex; gap:10px; align-items:flex-start;
    background:var(--red-soft); border:1px solid #F2C4C0; border-radius:12px;
    padding:12px 14px; font-size:14px; line-height:1.5; color:#7A1B14; margin-bottom:14px;
  }
  .alert-error svg{flex:none; margin-top:1px}
  .alert-error strong{color:var(--red)}
  .err-block{margin-bottom:22px}
  .err-block:last-child{margin-bottom:4px}
  .err-tag{
    display:inline-block; font-size:12px; font-weight:700; color:var(--muted);
    text-transform:uppercase; letter-spacing:.4px; margin-bottom:8px;
  }

  .foot{margin-top:22px; color:#9DB8A8; font-size:13.5px; text-align:center; max-width:480px; line-height:1.55}

  svg.icon{width:20px; height:20px; flex:none}
  @media (max-width:480px){
    body{padding:26px 12px 22px}
    .card{padding:24px 20px 22px}
    .otp-row{gap:6px}
    .otp-row input{height:56px; font-size:23px}
  }
