@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #212c5f;
  --heading: #131b44;
  --gold: #f9c93a;
  --text: #37405a;
  --muted: #727687;
  --panel: rgb(249 250 255 / 63%);
  --input: rgb(255 255 255 / 79%);
  --border: rgb(112 124 157 / 20%);
  --focus: #5868aa;
  --shadow: 0 18px 65px rgb(40 56 97 / 9%);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: #edf0f6;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100svh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, a { outline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.page-background { position: fixed; z-index: -1; inset: 0; background: url("background.svg") center center / cover no-repeat; pointer-events: none; }
.site-header { width: 100%; max-width: 1600px; margin-inline: auto; padding: 24px 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.brand img { filter: drop-shadow(0 3px 5px rgb(25 39 85 / 12%)); }
.brand-divider { height: 37px; width: 1px; background: rgb(91 105 137 / 27%); }
.brand-name { font-size: 18px; letter-spacing: -.6px; color: var(--heading); font-weight: 700; }
.brand-name strong { font-weight: 800; }
.header-controls { display: flex; align-items: center; gap: 10px; }
.theme-toggle { background: rgb(255 255 255 / 77%); border: 1px solid rgb(255 255 255 / 70%); display: inline-flex; align-items: center; justify-content: center; height: 42px; box-shadow: 0 3px 12px rgb(38 52 93 / 4%); }
.theme-toggle { border-radius: 50%; width: 42px; color: #dcae14; }
.theme-toggle:hover { background: #fff; }
.login-layout { flex: 1; width: 100%; max-width: 1440px; margin-inline: auto; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 70px; padding: 12px 5% 36px; }
.introduction { padding: 0 0 52px; }
.wordmark { font-size: clamp(26px, 2.75vw, 39px); line-height: 1.2; font-weight: 800; letter-spacing: -1.8px; white-space: nowrap; color: var(--navy); margin-bottom: 18px; }
.wordmark span { color: #edbd26; margin-left: 3px; }
.introduction h1 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.24; letter-spacing: -1.1px; color: var(--heading); margin: 0; font-weight: 800; }
.gold-line { margin: 12px 0 13px; height: 4px; width: 54px; background: var(--gold); border-radius: 2px; }
.introduction p { font-size: 16px; line-height: 1.7; margin: 0; color: var(--muted); }
.login-card { width: 100%; max-width: 440px; justify-self: end; padding: 33px 32px 22px; border: 1px solid rgb(255 255 255 / 78%); border-radius: 23px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.login-heading { margin-bottom: 24px; }
.login-heading h2 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -1px; color: var(--heading); margin: 4px 0 10px; }
.login-heading p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.field-group { margin-bottom: 20px; }
.field-group label { display: block; color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #737b91; width: 20px; height: 20px; pointer-events: none; }
.input-wrap input { width: 100%; height: 46px; padding: 0 14px 0 45px; border: 1px solid var(--border); border-radius: 10px; background: var(--input); color: var(--heading); font-size: 14px; transition: border-color .15s, box-shadow .15s; box-shadow: 0 1px 2px rgb(25 39 85 / 2%); }
.input-wrap input::placeholder { color: #8b90a0; opacity: 1; }
.input-wrap input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(70 90 150 / 12%); }
.password-wrap input { padding-right: 45px; }
.password-toggle { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; padding: 0; width: 42px; height: 42px; color: #6b7288; background: transparent; border: none; border-radius: 8px; }
.password-toggle:hover { color: var(--navy); background: rgb(92 107 152 / 6%); }
.password-toggle .icon { width: 20px; height: 20px; }
.text-button { display: inline-block; background: transparent; border: none; padding: 0; font-size: 13px; line-height: 1.5; text-align: left; }
.text-button:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.forgot-password { margin-bottom: 23px; }
.login-button { display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; border: 1px solid transparent; border-radius: 10px; width: 100%; height: 47px; font-size: 15px; font-weight: 700; transition: background .15s, box-shadow .15s, transform .15s; }
.login-button:hover { background: #18234e; box-shadow: 0 5px 15px rgb(33 44 95 / 16%); }
.login-button:active { transform: translateY(1px); }
.separator { display: flex; align-items: center; gap: 16px; margin: 24px 0 22px; color: #83889b; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; }
.separator::before, .separator::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.account-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-option { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 12px; padding: 11px 9px; text-align: left; background: rgb(255 255 255 / 57%); min-height: 62px; box-shadow: 0 1px 2px rgb(25 39 85 / 3%); }
.account-option:hover { border-color: #aeb7d2; background: rgb(255 255 255 / 87%); }
.option-icon { display: grid; place-items: center; width: 29px; height: 33px; border-radius: 9px; background: rgb(90 107 155 / 5%); color: var(--heading); flex-shrink: 0; }
.option-icon .icon { width: 20px; height: 20px; }
.account-option strong { display: block; color: var(--heading); font-size: 14px; font-weight: 700; line-height: 1.4; }
.account-option small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.preview-label { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.preview-message { font-size: 13px; line-height: 1.6; padding: 12px 14px; background: rgb(231 236 251 / 85%); border: 1px solid rgb(33 44 95 / 12%); border-radius: 10px; color: var(--heading); margin: 12px 0 0; }
.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 0 20px 18px; line-height: 1.6; }
.information-dialog { color: var(--text); border: 1px solid var(--border); width: min(420px, calc(100% - 36px)); padding: 30px; border-radius: 20px; background: #f9faff; box-shadow: 0 20px 100px rgb(19 27 68 / 25%); }
.information-dialog::backdrop { background: rgb(19 27 68 / 30%); backdrop-filter: blur(4px); }
.dialog-close { display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; background: transparent; border: none; border-radius: 9px; color: var(--muted); }
.dialog-close:hover { background: rgb(90 107 155 / 8%); }
.dialog-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgb(33 44 95 / 7%); color: var(--navy); margin-bottom: 20px; }
.information-dialog h2 { font-size: 23px; color: var(--heading); letter-spacing: -.5px; margin: 0 0 12px; }
.information-dialog p { font-size: 14px; line-height: 1.8; margin: 0 0 24px; }

html[data-theme="dark"] { color-scheme: dark; --heading: #f2f4ff; --text: #dce1f2; --muted: #abb5d0; --panel: rgb(26 35 70 / 80%); --input: rgb(17 26 57 / 70%); --border: rgb(167 182 224 / 20%); --focus: #afbbea; background: #10182f; }
html[data-theme="dark"] .page-background { background: radial-gradient(ellipse at top left, #26365b, transparent 70%), linear-gradient(130deg, #1c2944, #11192e); }
html[data-theme="dark"] .login-card { border-color: rgb(190 202 235 / 14%); box-shadow: 0 20px 90px rgb(0 0 0 / 15%); }
html[data-theme="dark"] .wordmark { color: #edf1ff; }
html[data-theme="dark"] .theme-toggle { background: #283454; border-color: var(--border); color: #e6cf7c; }
html[data-theme="dark"] .account-option { background: rgb(17 26 57 / 40%); }
html[data-theme="dark"] .account-option:hover { background: rgb(64 79 125 / 40%); }
html[data-theme="dark"] .login-button { background: #354780; }
html[data-theme="dark"] .login-button:hover { background: #43568f; }
html[data-theme="dark"] .preview-message, html[data-theme="dark"] .information-dialog { background: #202d51; }
html[data-theme="dark"] .text-button:hover, html[data-theme="dark"] .password-toggle:hover { color: #e6cf7c; }
html[data-theme="dark"] .dialog-symbol { color: #e6cf7c; background: rgb(230 207 124 / 10%); }

@media (min-width: 1500px) { .login-layout { padding-inline: 70px; } }
@media (max-width: 1050px) {
  .login-layout { gap: 32px; grid-template-columns: 1fr 1.05fr; }
  .wordmark { font-size: 27px; letter-spacing: -1.5px; }
  .introduction h1 { font-size: 29px; }
  .introduction p { max-width: 270px; font-size: 14px; }
  .login-card { padding-inline: 26px; }
}
@media (max-width: 760px) {
  .site-header { padding: 22px 24px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 35px; height: 35px; }
  .brand-divider { height: 29px; }
  .brand-name { font-size: 14px; letter-spacing: -.4px; }
  .header-controls { gap: 7px; }
  .theme-toggle { width: 36px; height: 36px; }
  .login-layout { display: flex; justify-content: center; padding: 24px 24px 30px; }
  .introduction { display: none; }
  .login-card { width: 100%; max-width: 440px; padding: 30px 28px 22px; }
  .page-background { background-position: 34% center; }
  .login-heading h2 { font-size: 27px; }
  .site-footer { padding: 0 24px 22px; }
}
@media (max-width: 380px) {
  .site-header { padding-inline: 18px; }
  .brand-name { max-width: 86px; font-size: 13px; line-height: 1.35; }
  .brand-divider { display: none; }
  .login-layout { padding-inline: 16px; }
  .login-card { padding-inline: 22px; }
  .account-option { gap: 6px; padding-inline: 7px; }
  .option-icon { width: 23px; }
  .account-option strong { font-size: 14px; }
  .account-option small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
