@font-face { font-family: "Novo"; src: url("/fonts/Novo-Light.woff2") format("woff2"), url("/fonts/Novo-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Novo"; src: url("/fonts/Novo-Regular.woff2") format("woff2"), url("/fonts/Novo-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Novo"; src: url("/fonts/Novo-Medium.woff2") format("woff2"), url("/fonts/Novo-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Novo"; src: url("/fonts/Novo-SemiBold.woff2") format("woff2"), url("/fonts/Novo-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Novo"; src: url("/fonts/Novo-Bold.woff2") format("woff2"), url("/fonts/Novo-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Novo"; src: url("/fonts/Novo-ExtraBold.woff2") format("woff2"), url("/fonts/Novo-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --true-blue: #00008F;
  --sea-blue: #0878CF;
  --light-blue: #3B97DE;
  --now: #00FFFF;
  --ink: #12213f;
  --muted: #5F5E5A;
  --line: #E1E5EC;
  --page: #F6F8FB;
  --white: #fff;
  --dur: .22s;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: "Novo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
.wrap { display: flex; min-height: 100vh; position: relative }

.lang {
  position: absolute; top: 20px; right: 24px; z-index: 6; display: flex; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 143, .12);
}
.lang button {
  border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.lang button.on { background: var(--true-blue); color: #fff }
.lang button:not(.on):hover { background: #EEF2F9; color: var(--true-blue) }

.brand {
  position: relative; flex: 1.1; background: var(--true-blue); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 44px 56px; color: #fff;
}
.brand canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; z-index: 0 }
.glow {
  position: absolute; width: 640px; height: 640px; left: -140px; top: 42%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0, 255, 255, .14), rgba(0, 0, 143, 0) 70%);
  z-index: 0; pointer-events: none;
}
.wm {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64%; max-width: 640px; height: auto; opacity: .07; z-index: 0; pointer-events: none; user-select: none;
}
.logo { position: absolute; top: 40px; left: 56px; height: 46px; width: auto; z-index: 2 }
.mid { position: relative; z-index: 2; max-width: 460px }
.title { font-size: 56px; line-height: 1.04; font-weight: 700; margin: 0 0 16px; letter-spacing: -.5px }
.subtitle { font-size: 20px; color: #C9DCF6; line-height: 1.5; margin: 0; font-weight: 400 }
.bot { position: absolute; left: 56px; bottom: 30px; z-index: 2; font-size: 12.5px; color: #8FB3E6 }

.auth { flex: .9; display: flex; align-items: center; justify-content: center; padding: 32px }
.card {
  width: 100%; max-width: 384px; background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 34px; box-shadow: 0 18px 50px rgba(0, 0, 143, .10); animation: rise .5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.hi { font-size: 25px; font-weight: 700; margin: 0 0 4px; color: var(--true-blue) }
.hsub { font-size: 14px; color: var(--muted); margin: 0 0 26px }
.field { margin-bottom: 16px }
.field label { display: block; font-size: 13px; font-weight: 600; color: #33405c; margin-bottom: 7px }
.inp { position: relative; display: flex; align-items: center }
.inp .ico { position: absolute; left: 13px; color: #9AA6BC; pointer-events: none; display: flex }
.inp input {
  width: 100%; height: 46px; padding: 0 44px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}
.inp input::placeholder { color: #AEB6C6 }
.inp input:hover { border-color: #C6D0E0 }
.inp input:focus { outline: none; border-color: var(--sea-blue); box-shadow: 0 0 0 4px rgba(8, 120, 207, .14); background: #FBFDFF }
.eye {
  position: absolute; right: 10px; width: 30px; height: 30px; border: 0; background: transparent; color: #9AA6BC;
  cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: color var(--dur), background var(--dur);
}
.eye:hover { color: var(--sea-blue); background: #EEF4FF }
.row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer }
.link { color: var(--sea-blue); font-size: 13px; text-decoration: none; transition: color var(--dur) }
.link:hover { color: var(--true-blue); text-decoration: underline }
.btn {
  width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--true-blue); color: #fff;
  font-size: 15.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur);
}
.btn:hover { background: #2626a0; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 143, .28) }
.btn:active { transform: translateY(0) scale(.985) }
.btn:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none }
.btn-sso { margin-top: 12px; background: #fff; color: var(--true-blue); border: 1.5px solid var(--true-blue); text-decoration: none }
.btn-sso:hover { background: #f2f2fa; box-shadow: none }
.sso-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: #8b93a3; font-size: 12px }
.sso-sep::before, .sso-sep::after { content: ""; flex: 1; height: 1px; background: #E3E7EF }
.policy { font-size: 12px; color: #8b93a3; text-align: center; line-height: 1.6; margin: 20px 0 0 }
.policy a { color: var(--sea-blue); text-decoration: none }
.credit { font-size: 11.5px; color: #AEB6C6; text-align: center; margin: 26px 0 0 }
.arrow { transition: transform var(--dur) var(--ease) }
.btn:hover .arrow { transform: translateX(3px) }
.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.error-banner {
  background: #FCEAE7; color: #7A2416; border: 1px solid #F3C3BA; border-radius: 12px;
  padding: 11px 14px; font-size: 13.5px; margin-bottom: 18px;
}

@media (max-width: 860px) {
  .wrap { flex-direction: column }
  .brand { flex: none; min-height: 260px; padding: 70px 26px 40px; justify-content: center }
  .logo { top: 22px; left: 26px; height: 40px }
  .mid { max-width: none }
  .title { font-size: 36px } .subtitle { font-size: 16px }
  .bot, .wm { display: none }
  .auth { flex: none; padding: 24px 18px 40px }
  .card { box-shadow: 0 10px 30px rgba(0, 0, 143, .10); margin-top: -46px }
  .lang { top: 16px; right: 16px }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none } .btn:hover { transform: none } .btn:hover .arrow { transform: none }
}
