:root {
  --login-ink: #142640;
  --login-muted: #71839e;
  --login-line: #dbe5f1;
  --login-blue: #3777e8;
  --login-blue-dark: #245cc9;
  --login-navy: #102746;
  --login-gold: #e6be63;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { min-height: 100vh; color: var(--login-ink); background: var(--login-navy); font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-shell { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; padding: 34px; isolation: isolate; background: radial-gradient(circle at 12% 12%, rgba(82,183,173,.2), transparent 28%), radial-gradient(circle at 86% 88%, rgba(230,190,99,.17), transparent 30%), linear-gradient(135deg, #0c203b 0%, #102d4d 52%, #183b61 100%); }
.login-shell::before { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.login-background { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; pointer-events: none; }
.login-background-one { width: 360px; height: 360px; left: -160px; top: 8%; background: radial-gradient(circle, rgba(82,183,173,.13), transparent 69%); }
.login-background-two { width: 480px; height: 480px; right: -240px; bottom: -180px; background: radial-gradient(circle, rgba(230,190,99,.12), transparent 68%); }

.login-layout { display: grid; grid-template-columns: minmax(260px,.82fr) minmax(390px,1fr); width: min(940px,100%); min-height: 590px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; background: rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(3,15,31,.36); backdrop-filter: blur(18px); }
.login-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 48px 42px 42px; color: #f7fbff; background: linear-gradient(155deg, rgba(12,36,65,.92), rgba(28,73,104,.74)), radial-gradient(circle at 20% 15%, rgba(82,183,173,.3), transparent 40%); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 13px; color: #103052; background: linear-gradient(145deg,#f7d472,#55c2b0); box-shadow: 0 8px 20px rgba(3,15,31,.18); font-size: 21px; font-weight: 900; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .1px; }
.brand-caption { margin-top: 2px; color: #b9cee8; font-size: 11px; letter-spacing: .35px; }
.intro-copy { max-width: 330px; margin: auto 0; }
.intro-kicker, .login-eyebrow { color: var(--login-gold); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.intro-copy h1 { margin-top: 14px; color: #fff; font-size: clamp(2rem,3.1vw,3rem); line-height: 1.08; letter-spacing: -1.6px; }
.intro-copy p:last-child { max-width: 310px; margin-top: 20px; color: #c9d9ec; font-size: 14px; line-height: 1.75; }
.intro-footer { display: flex; align-items: center; gap: 9px; color: #b9cee8; font-size: 11px; letter-spacing: .4px; }
.intro-dot { width: 8px; height: 8px; border-radius: 50%; background: #63d2b9; box-shadow: 0 0 0 5px rgba(99,210,185,.13); }

.login-card { align-self: stretch; padding: 48px 48px 40px; background: rgba(255,255,255,.98); }
.login-card-header { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.login-logo { width: 70px; height: 70px; flex: 0 0 auto; padding: 11px; border: 1px solid #e0e9f4; border-radius: 20px; object-fit: contain; background: #17243d; box-shadow: 0 10px 24px rgba(24,53,87,.12); }
.login-card h2 { margin-top: 5px; color: var(--login-ink); font-size: clamp(1.42rem,2vw,1.8rem); line-height: 1.15; letter-spacing: -.7px; }
.login-subtitle { margin-top: 7px; color: var(--login-muted); font-size: 13px; }
.notice { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 11px 13px; border: 1px solid var(--login-line); border-radius: 13px; color: #40536d; background: #f8fbff; font-size: 13px; font-weight: 700; line-height: 1.4; }
.notice-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: #667a97; font-size: 13px; font-weight: 900; }
.notice-error { border-color: #f2d2d7; color: #9f3443; background: #fff6f7; }
.notice-error .notice-icon { background: #c94d61; }
.notice-success { border-color: #cce9df; color: #277663; background: #f2fbf8; }
.notice-success .notice-icon { background: #3d9a84; }

.login-form { display: flex; flex-direction: column; gap: 19px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.input-label { color: #324964; font-size: 12px; font-weight: 800; letter-spacing: .25px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 15px; width: 19px; height: 19px; fill: none; stroke: #7b90ac; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; pointer-events: none; }
.input-wrap input { width: 100%; min-height: 50px; padding: 0 15px 0 45px; border: 1px solid var(--login-line); border-radius: 13px; outline: none; color: var(--login-ink); background: #f8fbff; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.input-wrap input::placeholder { color: #9aabc0; }
.input-wrap input:hover { border-color: #c1d1e4; }
.input-wrap input:focus { border-color: var(--login-blue); background: #fff; box-shadow: 0 0 0 4px rgba(55,119,232,.13); }
.password-wrap input { padding-right: 50px; }
.password-toggle { position: absolute; right: 9px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; color: #7186a2; background: transparent; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--login-blue); background: #eaf2ff; outline: none; }
.eye-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.eye-icon-hide { display: none; }
.password-toggle.is-visible .eye-icon-show { display: none; }
.password-toggle.is-visible .eye-icon-hide { display: block; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 52px; margin-top: 4px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--login-blue),var(--login-blue-dark)); box-shadow: 0 12px 24px rgba(55,119,232,.24); font-size: 14px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 15px 28px rgba(55,119,232,.3); }
.btn-primary:focus-visible { outline: 3px solid rgba(55,119,232,.25); outline-offset: 3px; }
.login-security { display: flex; align-items: center; gap: 7px; margin-top: 26px; color: #8a9bb0; font-size: 11px; line-height: 1.45; }
.login-security svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: #5ba995; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

@media (max-width: 760px) {
  .login-shell { padding: 18px; }
  .login-layout { display: block; width: min(510px,100%); min-height: auto; border-radius: 24px; }
  .login-intro { min-height: 190px; padding: 25px 25px 22px; }
  .intro-copy { margin: 28px 0 0; }
  .intro-copy h1 { margin-top: 8px; font-size: 1.75rem; letter-spacing: -.8px; }
  .intro-copy p:last-child, .intro-footer { display: none; }
  .login-card { padding: 31px 25px 27px; }
}

@media (max-width: 420px) {
  .login-shell { padding: 10px; }
  .login-intro { min-height: 169px; }
  .login-card-header { align-items: flex-start; gap: 13px; margin-bottom: 24px; }
  .login-logo { width: 56px; height: 56px; padding: 8px; border-radius: 16px; }
  .login-card h2 { font-size: 1.3rem; }
  .login-subtitle { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
