:root {
  color-scheme: light;
  --ink: #202923;
  --muted: #657067;
  --line: #dce1da;
  --accent: #254b3c;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #101b19; color: var(--ink); font-family: 'Segoe UI', 'Malgun Gothic', sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #81ad97; outline-offset: 5px; }
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-shade { position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9,23,20,.77), rgba(9,23,20,.33) 56%, rgba(9,23,20,.3)); pointer-events: none; }
.login-shell { max-width: 1600px; min-height: 100vh; min-height: 100svh; padding: 38px clamp(24px, 5.4vw, 88px) 24px; margin: auto; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; padding: 10px 12px; border-radius: 8px; background: #fff; }
.brand-logo img { display: block; width: 132px; height: auto; }
.brand-divider { width: 1px; height: 25px; background: rgba(255,255,255,.3); }
.brand-name { font-size: 12px; font-weight: 600; letter-spacing: .025em; }
.header-caption { font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.8); }
.login-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(40px, 7vw, 112px); align-items: center; padding: 58px 0; }
.intro { color: #fff; max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; font-size: 11px; font-weight: 600; letter-spacing: .18em; }
.eyebrow::before { content: ''; width: 27px; height: 2px; background: #bed0a8; }
.intro h1 { font-size: clamp(38px, 4.2vw, 64px); line-height: 1.3; letter-spacing: -.065em; font-weight: 650; margin: 0; word-break: keep-all; }
.intro h1 span { color: #d2ddc5; }
.intro-description { margin: 26px 0 0; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.83); word-break: keep-all; }
.work-areas { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); width: fit-content; }
.work-area { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: 12px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.login-card { background: #fafbf7; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; padding: 40px; box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 32px; }
.card-kicker { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .15em; }
.step-indicator { display: flex; gap: 5px; }
.step-indicator span { width: 18px; height: 3px; background: #dfe5dd; border-radius: 2px; }
.step-indicator .current { background: var(--accent); }
.card-title { font-size: 29px; line-height: 1.35; font-weight: 700; letter-spacing: -.055em; margin: 0 0 10px; }
.card-sub { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 30px; word-break: keep-all; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #78847a; pointer-events: none; }
.form-control { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 15px 0 43px; color: var(--ink); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.form-control::placeholder { color: #838c84; }
.form-control:focus { outline: none; border-color: #47745b; box-shadow: 0 0 0 3px rgba(71,116,91,.12); }
#pw-input { padding-right: 62px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; height: 44px; min-width: 48px; padding: 0 8px; background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; border-radius: 5px; }
.pw-toggle:hover { color: var(--accent); background: #f2f5ee; }
.btn-login { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 26px; padding: 14px 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .15s; }
.btn-login:hover { background: #183c2e; }
.btn-login:disabled { opacity: .65; cursor: wait; }
.account-help { margin: 24px 0 0; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; }
.account-help strong { color: #3d4c41; font-weight: 600; }
.security-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.security-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.security-note p { margin: 0; word-break: keep-all; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: rgba(255,255,255,.73); font-size: 10px; letter-spacing: .025em; }
.footer-tools { display: flex; align-items: center; gap: 22px; }
.video-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; border: 1px solid rgba(255,255,255,.32); border-radius: 20px; color: #fff; background: rgba(9,23,20,.3); padding: 6px 12px; font-size: 10px; cursor: pointer; }
.video-toggle .icon { width: 12px; height: 12px; }
.video-toggle[hidden] { display: none; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 12px; line-height: 1.7; margin-bottom: 20px; overflow-wrap: anywhere; }
.alert-error { background: #fceceb; color: #942e2a; border: 1px solid #edcbc8; }
.alert-warning { background: #fbf3df; color: #795719; border: 1px solid #e9d9b2; }
.otp-account { padding: 12px 14px; background: #edf2e8; border-radius: 8px; font-size: 12px; line-height: 1.8; margin-bottom: 24px; overflow-wrap: anywhere; }
.otp-input { padding: 0 16px; height: 62px; font-family: Consolas, monospace; font-size: 27px; text-align: center; letter-spacing: .3em; }
.back-link { display: block; width: 100%; border: 0; background: none; padding: 12px; margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; cursor: pointer; }
.back-link:hover { color: var(--accent); }
@media (min-width: 1600px) { .login-main { gap: 140px; } }
@media (min-width: 761px) and (max-height: 800px) {
  .login-shell { padding-top: 24px; padding-bottom: 18px; }
  .login-main { padding-block: 24px; }
  .login-card { padding: 28px 36px; }
  .card-topline { margin-bottom: 22px; }
  .card-sub { margin-bottom: 22px; }
  .form-group { margin-bottom: 16px; }
  .btn-login { margin-top: 22px; }
  .account-help { margin-top: 18px; }
  .security-note { margin-top: 20px; padding-top: 18px; }
}
@media (max-width: 1000px) { .login-main { gap: 36px; grid-template-columns: minmax(0, 1fr) 380px; } .login-card { padding: 32px; } .intro h1 { font-size: 40px; } .work-areas { gap: 16px; } }
@media (max-width: 760px) {
  .login-shell { padding: 26px 22px 18px; }
  .header-caption { display: none; }
  .brand { gap: 12px; }
  .brand-logo { padding: 8px; border-radius: 6px; }
  .brand-logo img { width: 104px; }
  .brand-divider { flex-shrink: 0; }
  .brand-name { max-width: 145px; font-size: 11px; line-height: 1.6; word-break: keep-all; }
  .login-main { display: flex; flex-direction: column; gap: 36px; padding: 36px 0; }
  .login-card { order: -1; width: 100%; max-width: 440px; padding: 30px; }
  .intro { width: 100%; max-width: 440px; }
  .eyebrow { margin-bottom: 16px; font-size: 9px; }
  .intro h1 { font-size: 30px; }
  .intro-description { font-size: 13px; margin-top: 15px; }
  .work-areas { margin-top: 24px; padding-top: 18px; gap: 15px; }
  .work-area { font-size: 11px; }
  .site-footer { flex-wrap: wrap; font-size: 9px; }
  .footer-tools { width: 100%; justify-content: space-between; }
  .video-shade { background: rgba(9,23,20,.6); }
}
@media (max-width: 360px) { .login-shell { padding-inline: 16px; } .login-card { padding: 24px; } .brand { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
