@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@500;600&family=Manrope:wght@500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #142b50;
  --navy-dark: #10223e;
  --ink: #14221f;
  --muted: #667a74;
  --line: #d7e0dc;
  --paper: #f6f8f6;
  --white: #fff;
  --copper: #c86537;
  --focus: #355fc7;
  font-family: 'Manrope', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { min-height: 100dvh; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(53,95,199,.45); outline-offset: 3px; }

.login-shell { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 53%); min-height: 100dvh; }
.brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; overflow: hidden; padding: clamp(28px, 4vw, 66px); color: var(--white); background: var(--navy); }
.brand-panel::before { content: ''; position: absolute; width: min(66vw, 760px); aspect-ratio: 1; right: -44%; top: 22%; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; pointer-events: none; }
.brand-panel::after { content: ''; position: absolute; width: min(55vw, 630px); aspect-ratio: 1; right: -44%; top: 33%; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.brand-heading, .brand-statement, .brand-route { position: relative; z-index: 1; }
.brand-heading { display: flex; align-items: center; gap: 15px; }
.brand-icon { flex: none; display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 13px; background: var(--white); }
.brand-heading strong, .brand-heading span { display: block; }
.brand-heading strong { font: 18px/1.15 'Archivo Black', 'Noto Sans KR', sans-serif; letter-spacing: .035em; }
.brand-heading span { margin-top: 4px; color: #b9c7d7; font: 600 9px/1.3 'IBM Plex Mono', monospace; letter-spacing: .12em; }
.brand-statement { max-width: 560px; margin-block: 75px; }
.overline { margin: 0 0 22px; color: #f39b67; font: 600 11px/1.5 'IBM Plex Mono', monospace; letter-spacing: .13em; }
.overline span { margin-inline: 5px; }
.brand-statement h1 { margin: 0; font: clamp(46px, 5.25vw, 92px)/1.11 'Archivo Black', 'Noto Sans KR', sans-serif; letter-spacing: -.065em; }
.brand-statement > p:last-child { margin: 24px 0 0; color: #c6d3de; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.6; }
.brand-route { display: flex; align-items: center; gap: 16px; max-width: 420px; color: #bbcad8; font: 600 10px/1.4 'IBM Plex Mono', monospace; letter-spacing: .13em; }
.brand-route i { flex: 1; height: 1px; background: rgba(255,255,255,.37); }

.form-panel { display: grid; place-items: center; min-width: 0; padding: 44px clamp(26px, 7vw, 112px); background: var(--paper); }
.form-wrap { width: min(100%, 410px); }
.form-eyebrow { margin: 0 0 15px; color: var(--copper); font: 600 11px/1.2 'IBM Plex Mono', monospace; letter-spacing: .14em; }
.form-wrap h2 { margin: 0; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.1; letter-spacing: -.055em; }
.form-intro { margin: 12px 0 38px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field { margin-top: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.field-label { display: flex; align-items: flex-start; justify-content: space-between; }
.field input { width: 100%; height: 54px; padding: 0 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--white); outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.field input::placeholder { color: #9aa9a3; }
.field input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(53,95,199,.11); }
.reveal-button { padding: 0 2px; color: var(--muted); border: 0; background: none; font-size: 12px; font-weight: 700; }
.reveal-button:hover { color: var(--navy); }
.form-error { margin: 19px 0 0; padding: 12px 14px; color: #a73640; border: 1px solid #edc6c8; border-radius: 9px; background: #fff0f0; font-size: 12px; line-height: 1.6; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; margin-top: 28px; padding: 0 18px; color: var(--white); border: 1px solid var(--navy); border-radius: 10px; background: var(--navy); font-size: 14px; font-weight: 800; transition: background-color .16s ease, transform .16s ease; }
.submit-button:hover { background: var(--navy-dark); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; opacity: .72; }
.submit-button span:last-child { font-size: 22px; font-weight: 500; line-height: 1; }
.passkey-entry { margin-top: 22px; }
.login-divider { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; color: var(--muted); font-size: 11px; font-weight: 700; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.passkey-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 16px; color: var(--navy); border: 1px solid #b8c7d5; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 800; transition: border-color .16s ease, background-color .16s ease; }
.passkey-button:hover { border-color: var(--navy); background: #f0f4f9; }
.passkey-button:disabled { cursor: wait; opacity: .68; }
.passkey-button svg { flex: none; width: 23px; height: 23px; }
.passkey-help { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.security-note { display: flex; align-items: center; gap: 8px; margin: 27px 0 0; color: var(--muted); font-size: 11px; }
.security-dot { width: 7px; height: 7px; border-radius: 50%; background: #16705a; }

@media (max-width: 800px) {
  .login-shell { display: block; }
  .brand-panel { min-height: 0; padding: 28px 24px 43px; }
  .brand-panel::before { width: 460px; right: -210px; top: -105px; }
  .brand-panel::after { width: 330px; right: -180px; top: -30px; }
  .brand-icon { width: 45px; height: 45px; border-radius: 11px; }
  .brand-heading { gap: 12px; }
  .brand-heading strong { font-size: 15px; }
  .brand-statement { margin: 40px 0 0; }
  .brand-statement h1 { font-size: clamp(36px, 8vw, 52px); }
  .brand-statement > p:last-child { margin-top: 12px; font-size: 13px; }
  .overline { margin-bottom: 11px; font-size: 9px; }
  .brand-route { display: none; }
  .form-panel { display: block; padding: 39px 24px 54px; }
  .form-wrap { width: min(100%, 430px); margin: 0 auto; }
  .form-wrap h2 { font-size: 35px; }
  .form-intro { margin: 9px 0 24px; }
}

@media (max-width: 380px) {
  .brand-panel { padding-inline: 19px; }
  .form-panel { padding-inline: 19px; }
}

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

/* Glass dashboard visual system: keep the existing login and passkey controls intact. */
:root {
  --ink: #172440;
  --muted: #68758c;
  --purple: #6531f7;
  --purple-dark: #5122ce;
  --focus: var(--purple);
  background: #eef6ff;
}
body {
  background:
    radial-gradient(ellipse 45% 48% at 12% 0%, rgba(210, 235, 255, .92), transparent 78%),
    radial-gradient(ellipse 46% 52% at 89% 91%, rgba(224, 196, 255, .82), transparent 79%),
    radial-gradient(ellipse 35% 48% at 48% 65%, rgba(243, 220, 255, .74), transparent 85%),
    linear-gradient(145deg, #eaf5ff 0%, #f8fbff 45%, #faedff 100%);
}
:focus-visible { outline-color: rgba(101, 49, 247, .52); }
.login-shell {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 22px;
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 30px);
}
.brand-panel, .form-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  background: rgba(255, 255, 255, .26);
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, .88),
    inset 0 0 1px 1px rgba(255, 255, 255, .44),
    0 24px 70px rgba(70, 82, 140, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand-panel {
  min-height: max(620px, calc(100dvh - clamp(28px, 4vw, 60px)));
  isolation: isolate;
  color: var(--ink);
}
.brand-panel::before {
  z-index: -1;
  width: min(65vw, 730px);
  right: -39%;
  top: 18%;
  border-color: rgba(101, 49, 247, .19);
  box-shadow: 0 0 0 100px rgba(255, 255, 255, .09), 0 0 0 101px rgba(101, 49, 247, .10);
  transform: rotate(-25deg) scaleY(.73);
}
.brand-panel::after {
  z-index: -1;
  width: 40%;
  height: 1px;
  right: 0;
  bottom: 23%;
  top: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(101, 49, 247, .26));
  transform: rotate(-24deg);
  transform-origin: right;
}
.brand-icon {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, .76);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(20, 43, 80, .12);
}
.brand-heading strong, .brand-statement h1 { color: var(--navy); }
.brand-heading span { color: #71809c; }
.brand-statement h1 { font-size: clamp(47px, 5vw, 84px); }
.brand-statement > p:last-child { color: #5f6f8a; }
.overline, .form-eyebrow { color: var(--purple); }
.brand-route { color: #68789a; }
.brand-route i { background: linear-gradient(90deg, rgba(101, 49, 247, .65), rgba(101, 49, 247, .12)); }
.form-panel { padding-inline: clamp(30px, 7vw, 108px); }
.form-wrap { width: min(100%, 430px); }
.field label { color: var(--ink); }
.field input {
  height: 56px;
  border-color: rgba(153, 172, 204, .44);
  border-radius: 14px;
  background: rgba(255, 255, 255, .73);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .84);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.field input::placeholder { color: #8b99ad; }
.field input:hover { background: rgba(255, 255, 255, .91); }
.field input:focus { background: #fff; box-shadow: 0 0 0 4px rgba(101, 49, 247, .13); }
.reveal-button:hover { color: var(--purple-dark); }
.submit-button {
  min-height: 56px;
  border-color: var(--purple);
  border-radius: 14px;
  background: var(--purple);
  box-shadow: 0 8px 18px rgba(101, 49, 247, .22);
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.submit-button:hover { background: var(--purple-dark); box-shadow: 0 11px 23px rgba(101, 49, 247, .28); }
.login-divider::before, .login-divider::after { background: rgba(128, 143, 178, .35); }
.passkey-button {
  min-height: 56px;
  border-color: rgba(157, 169, 208, .58);
  border-radius: 14px;
  background: rgba(255, 255, 255, .61);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .9);
}
.passkey-button:hover { border-color: var(--purple); background: rgba(255, 255, 255, .93); }
.security-dot { background: #2dbe76; }

@media (max-width: 880px) {
  .login-shell { display: block; padding: 14px; }
  .brand-panel { min-height: 0; padding: 28px 30px 35px; border-radius: 24px 24px 0 0; }
  .brand-panel::before { width: 460px; right: -200px; top: -130px; }
  .brand-panel::after { display: none; }
  .brand-icon { width: 45px; height: 45px; border-radius: 12px; }
  .brand-statement { margin: 35px 0 0; }
  .brand-statement h1 { font-size: clamp(35px, 6vw, 52px); }
  .form-panel { display: block; padding: 39px 30px 48px; border-top: 0; border-radius: 0 0 24px 24px; }
  .form-wrap { width: min(100%, 440px); margin: 0 auto; }
}

@media (max-width: 480px) {
  .login-shell { padding: 8px; }
  .brand-panel { padding: 23px 21px 29px; border-radius: 19px 19px 0 0; }
  .form-panel { padding: 31px 21px 39px; border-radius: 0 0 19px 19px; }
  .brand-statement { margin-top: 28px; }
  .brand-statement h1 { font-size: clamp(32px, 9vw, 42px); }
  .field { margin-top: 18px; }
  .form-intro { margin-bottom: 19px; }
}
