:root {
  color: #142320;
  background: #eef3f1;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-synthesis: none;
  --green-950: #063a35;
  --green-900: #074b44;
  --green-800: #0b5f55;
  --green-700: #117568;
  --green-100: #dceee9;
  --ink: #142320;
  --muted: #65746f;
  --line: #d9e2df;
  --paper: #ffffff;
  --danger: #a13b35;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #eef3f1; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(17, 117, 104, .08), transparent 24rem),
    linear-gradient(135deg, #e8efed 0%, #f7f9f8 54%, #edf3f1 100%);
}

button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-950);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(400px, 1.1fr);
  width: min(1180px, calc(100% - 48px));
  min-height: min(760px, calc(100vh - 48px));
  min-height: min(760px, calc(100dvh - 48px));
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid rgba(7, 75, 68, .10);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(16, 47, 42, .14);
}

.intro-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(36px, 5vw, 68px);
  overflow: hidden;
  color: #f3fbf9;
  background:
    radial-gradient(circle at 90% 12%, rgba(124, 214, 193, .22), transparent 16rem),
    linear-gradient(155deg, var(--green-900), var(--green-950));
}

.intro-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(188, 233, 222, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(188, 233, 222, .035), 0 0 0 110px rgba(188, 233, 222, .025);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  color: var(--green-950);
  background: #d7f0e9;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.eyebrow {
  margin: 0 0 4px;
  color: #a9d8cd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .17em;
}

.brand-lockup h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.brand-lockup h1 span { color: #a9d8cd; font-weight: 560; }

.intro-copy {
  position: relative;
  z-index: 1;
  margin: auto 0 54px;
  max-width: 460px;
}

.intro-kicker {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -.055em;
}

.intro-description {
  margin: 0;
  color: #c4ddd7;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.security-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(213, 240, 233, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(4px);
}

.security-list li > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #8fcabd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.security-list strong { color: #f7fffd; font-size: 13px; }
.security-list small { margin-top: 3px; color: #a9c8c1; font-size: 11px; }

.intro-footnote {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: #8fafa8;
  font-size: 11px;
}

.form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 6vw, 82px);
  background: #fbfcfc;
}

.login-card { width: min(100%, 430px); }

.card-heading { margin-bottom: 31px; }

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .02em;
}

.security-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20a17f;
  box-shadow: 0 0 0 3px rgba(32, 161, 127, .13);
}

.card-heading h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.field { margin-bottom: 19px; }

.field label {
  display: block;
  margin: 0 0 8px;
  color: #34433f;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #cfdad7;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field input:hover { border-color: #aebdb9; }

.field input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(17, 117, 104, .11);
}

.field small { display: block; margin-top: 8px; color: #778681; font-size: 11px; }

.password-field { position: relative; }
.password-field input { padding-right: 64px; }

.text-button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 44px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: var(--green-800);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover, .text-button:focus-visible { background: #edf5f2; outline: none; }

.primary-button, .secondary-button {
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  gap: 12px;
  margin-top: 27px;
  border: 1px solid var(--green-800);
  color: #fff;
  background: var(--green-800);
  box-shadow: 0 10px 24px rgba(11, 95, 85, .20);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.primary-button:hover:not(:disabled) { background: var(--green-900); box-shadow: 0 12px 28px rgba(11, 95, 85, .26); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:focus-visible, .secondary-button:focus-visible { outline: 3px solid rgba(17, 117, 104, .24); outline-offset: 2px; }
.primary-button:disabled { cursor: wait; opacity: .66; box-shadow: none; }
.button-arrow { font-size: 18px; font-weight: 400; }

.secondary-button {
  margin-top: 10px;
  border: 0;
  color: #52635e;
  background: transparent;
  font-size: 13px;
}

.secondary-button:hover { color: var(--green-800); background: #f0f5f3; }

.verification-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  padding: 14px 15px;
  border: 1px solid #d9e7e3;
  border-radius: 12px;
  background: #f3f8f6;
}

.verification-note p { margin: 0; color: #50615d; font-size: 12px; line-height: 1.55; }

.verification-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--green-800);
  font-weight: 800;
}

.totp-input {
  height: 64px;
  text-align: center;
  font-size: 26px !important;
  font-weight: 760;
  letter-spacing: .34em;
  text-indent: .34em;
  font-variant-numeric: tabular-nums;
}

.form-message {
  min-height: 22px;
  margin: 19px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.form-message[data-tone="progress"] { color: var(--green-700); }

.noscript-message {
  padding: 12px;
  border-radius: 10px;
  color: #7d302c;
  background: #fff0ef;
  font-size: 12px;
}

.page-footer { margin: 42px 0 0; color: #91a09c; font-size: 10px; letter-spacing: .05em; }
.is-hidden { display: none !important; }

@media (max-width: 840px) {
  body { background: #f5f8f7; }
  .auth-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .intro-panel { padding: max(24px, env(safe-area-inset-top)) 24px 26px; }
  .intro-copy { margin: 42px 0 0; }
  .intro-kicker { margin-bottom: 12px; font-size: 29px; }
  .intro-description { max-width: 520px; font-size: 13px; line-height: 1.65; }
  .security-list, .intro-footnote { display: none; }
  .form-panel { min-height: 520px; padding: 38px 24px max(28px, env(safe-area-inset-bottom)); justify-content: flex-start; }
  .login-card { max-width: 500px; }
  .page-footer { margin-top: auto; padding-top: 36px; }
}

@media (max-width: 420px) {
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 21px; }
  .eyebrow { font-size: 8px; }
  .brand-lockup h1 { font-size: 19px; }
  .intro-copy { margin-top: 34px; }
  .intro-kicker { font-size: 27px; }
  .form-panel { padding-inline: 20px; }
  .card-heading { margin-bottom: 27px; }
  .card-heading h2 { font-size: 30px; }
}

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

.passkey-panel { margin-bottom: 2px; }
.passkey-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid #b8d6ce;
  border-radius: 12px;
  color: var(--ink);
  background: #f4faf8;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.passkey-button:hover:not(:disabled) { border-color: var(--green-700); background: #edf7f4; }
.passkey-button:active:not(:disabled) { transform: translateY(1px); }
.passkey-button:focus-visible { outline: 3px solid rgba(17, 117, 104, .24); outline-offset: 2px; }
.passkey-button:disabled { cursor: wait; opacity: .66; }
.passkey-button strong { display: block; color: var(--green-900); font-size: 14px; }
.passkey-button small { display: block; margin-top: 3px; color: #72827d; font-size: 10px; font-weight: 500; }
.face-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--green-800);
  font-size: 24px;
  font-weight: 800;
}
.method-divider { display: flex; align-items: center; gap: 12px; margin: 21px 0; color: #91a09b; font-size: 10px; }
.method-divider::before, .method-divider::after { content: ""; height: 1px; flex: 1; background: #e0e7e4; }
.remember-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #dbe5e2;
  border-radius: 11px;
  color: #40514c;
  background: #fafcfc;
  cursor: pointer;
}
.remember-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green-800); }
.remember-row strong { display: block; font-size: 12px; line-height: 1.45; }
.remember-row small { display: block; margin-top: 4px; color: #7b8a85; font-size: 10px; line-height: 1.5; word-break: keep-all; }
.enroll-panel .primary-button { margin-top: 0; }

@media (max-width: 420px) {
  .passkey-button { min-height: 62px; }
  .remember-row { padding: 12px; }
}
