:root {
  color-scheme: light;
  --auth-blue: #0865ed;
  --auth-blue-dark: #064fcb;
  --auth-blue-soft: #eaf2ff;
  --auth-navy: #07142f;
  --auth-text: #12213d;
  --auth-muted: #60708e;
  --auth-line: #dfe6f0;
  --auth-line-soft: #edf1f6;
  --auth-red: #e54755;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--auth-text);
  background: #082f69;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #082f69; }
body { min-height: 100%; margin: 0; color: var(--auth-text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.auth-page { min-height: 100vh; min-height: 100dvh; }
.auth-layout {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden auto;
  place-items: center;
  background:
    radial-gradient(circle at 82% 15%, rgba(96,199,255,.28), transparent 28%),
    radial-gradient(circle at 8% 84%, rgba(115,84,239,.24), transparent 31%),
    linear-gradient(142deg,#06162f 0%,#082f69 52%,#075ed4 100%);
  isolation: isolate;
}
.auth-layout::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255,255,255,.13) .8px,transparent .8px);
  background-size: 24px 24px;
  opacity: .34;
  -webkit-mask-image: linear-gradient(120deg,#000 0%,transparent 82%);
  mask-image: linear-gradient(120deg,#000 0%,transparent 82%);
  pointer-events: none;
}
.auth-layout::after {
  position: fixed;
  z-index: -1;
  right: -180px;
  bottom: -230px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(93,194,255,.1);
  content: "";
  pointer-events: none;
}

.auth-entry {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 20px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.auth-brand {
  display: inline-flex;
  width: 150px;
  margin: 0 auto 20px;
  align-items: center;
  justify-content: center;
}
.auth-brand img { display: block; width: 150px; height: auto; object-fit: contain; filter: brightness(0) invert(1); }
.auth-brand:focus-visible { border-radius: 8px; outline: 3px solid rgba(255,255,255,.68); outline-offset: 6px; }

.auth-card {
  width: min(480px,100%);
  padding: 32px 36px 28px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 26px 72px rgba(0,18,55,.28),0 2px 8px rgba(0,18,55,.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.auth-card-head { display: grid; margin-bottom: 24px; grid-template-columns: 42px minmax(0,1fr); align-items: start; gap: 12px; }
.auth-card-head > span:last-child { display: grid; gap: 2px; }
.auth-card-head small { color: var(--auth-blue); font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.auth-card-head h2 { margin: 0; color: var(--auth-navy); font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.auth-card-head p { margin: 2px 0 0; color: var(--auth-muted); font-size: 13px; }
.auth-welcome-icon { display: grid; width: 42px; height: 42px; border-radius: 13px; place-items: center; color: var(--auth-blue); background: var(--auth-blue-soft); }
.auth-welcome-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-alert { display: grid; margin: 0 0 17px; padding: 11px 12px; border: 1px solid #f0c1c7; border-radius: 12px; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 8px; color: #ad3040; background: #fff3f4; font-size: 12px; font-weight: 650; line-height: 1.55; }
.auth-alert[data-tone="info"] { border-color: #bcd5f7; color: #2465a9; background: #f1f7ff; }
.auth-alert[data-tone="warning"] { border-color: #efcf93; color: #94600a; background: #fff8ea; }
.auth-alert[data-tone="success"] { border-color: #a8dfc6; color: #17724b; background: #effbf5; }
.auth-alert-icon { display: grid; width: 21px; height: 21px; margin-top: 1px; border-radius: 7px; place-items: center; color: #fff; background: #d94a5c; font-size: 0; }
.auth-alert-icon::after { color: #fff; content: "!"; font-size: 11px; font-weight: 900; }
.auth-alert[data-tone="info"] .auth-alert-icon { background: #2f78c8; }
.auth-alert[data-tone="warning"] .auth-alert-icon { background: #c88316; }
.auth-alert[data-tone="success"] .auth-alert-icon { background: #1f9163; }
.auth-alert[data-tone="info"] .auth-alert-icon::after,.auth-alert[data-tone="success"] .auth-alert-icon::after { content: "i"; font-family: Georgia,serif; }

#loginForm { display: grid; gap: 15px; }
.auth-field { display: grid; gap: 7px; color: #344a68; font-size: 13px; font-weight: 750; }
.auth-input-wrap { position: relative; display: flex; height: 48px; border: 1px solid #ced9e7; border-radius: 12px; align-items: center; background: #fbfdff; transition: border-color .16s ease,box-shadow .16s ease,background .16s ease; }
.auth-input-wrap:hover { border-color: #aebfd4; background: #fff; }
.auth-input-wrap:focus-within { border-color: var(--auth-blue); background: #fff; box-shadow: 0 0 0 4px rgba(8,101,237,.11); }
.auth-input-wrap > svg { width: 19px; height: 19px; margin-left: 14px; flex: 0 0 auto; fill: none; stroke: #7d8da3; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-input-wrap:focus-within > svg { stroke: var(--auth-blue); }
.auth-input-wrap input { width: 100%; height: 100%; min-width: 0; padding: 0 13px 0 10px; border: 0; outline: 0; color: var(--auth-text); background: transparent; font-size: 14px; font-weight: 560; }
.auth-input-wrap input::placeholder { color: #9aa7b9; font-weight: 450; }
.password-control input { padding-right: 45px; }
.password-control button { position: absolute; top: 5px; right: 5px; display: grid; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; place-items: center; color: #73849b; background: transparent; cursor: pointer; }
.password-control button:hover { color: var(--auth-blue); background: #eff5ff; }
.password-control button:focus-visible { outline: 2px solid var(--auth-blue); outline-offset: 1px; }
.password-control button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-control .eye-closed { display: none; }
.password-control button[aria-pressed="true"] .eye-open { display: none; }
.password-control button[aria-pressed="true"] .eye-closed { display: block; }

.auth-options { display: flex; min-width: 0; margin-top: -1px; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.auth-check { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #52657e; font-size: 12px; font-weight: 650; cursor: pointer; user-select: none; }
.auth-check input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.auth-check-box { position: relative; display: grid; width: 19px; height: 19px; border: 1px solid #bdc9d8; border-radius: 6px; place-items: center; background: #fff; transition: border-color .15s ease,background .15s ease,box-shadow .15s ease; }
.auth-check:hover .auth-check-box { border-color: #7ea9e7; }
.auth-check input:checked + .auth-check-box { border-color: var(--auth-blue); background: var(--auth-blue); }
.auth-check input:checked + .auth-check-box::after { width: 8px; height: 4px; margin-top: -2px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ""; transform: rotate(-45deg); }
.auth-check input:focus-visible + .auth-check-box { outline: 3px solid rgba(8,101,237,.18); outline-offset: 2px; }

.auth-submit { position: relative; display: grid; width: 100%; height: 48px; margin-top: 1px; padding: 0 18px; border: 0; border-radius: 12px; place-items: center; color: #fff; background: linear-gradient(135deg,#0875f5,#0755df); box-shadow: 0 10px 22px rgba(7,91,225,.22); font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .16s ease,box-shadow .16s ease,filter .16s ease; }
.auth-submit:hover { box-shadow: 0 13px 26px rgba(7,91,225,.27); filter: saturate(1.05); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 3px solid rgba(8,101,237,.23); outline-offset: 3px; }
.auth-submit:disabled { cursor: wait; filter: saturate(.7); opacity: .72; transform: none; }
.auth-submit i { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-submit.loading span { visibility: hidden; }
.auth-submit.loading i { position: absolute; display: block; }

.auth-divider { display: flex; margin: 22px 0 16px; align-items: center; gap: 12px; color: #8a98ac; font-size: 11px; font-weight: 650; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; content: ""; background: var(--auth-line-soft); }
.auth-divider span { white-space: nowrap; }
.auth-social { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.auth-social-button { display: flex; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #d8e0ea; border-radius: 12px; align-items: center; justify-content: center; gap: 9px; color: #25354c; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s ease,box-shadow .15s ease,transform .15s ease,filter .15s ease; }
.auth-social-button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.auth-social-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-social-button:hover:not(:disabled) { border-color: #aebdce; box-shadow: 0 6px 14px rgba(26,51,86,.08); transform: translateY(-1px); }
.auth-social-button:focus-visible { outline: 3px solid rgba(8,101,237,.18); outline-offset: 2px; }
.auth-social-button.kakao { border-color: #fee500; color: rgba(0,0,0,.85); background: #fee500; }
.auth-social-button.kakao:hover:not(:disabled) { border-color: #f2d900; filter: brightness(.985); }
.auth-social-button:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .48; }
.auth-social-status { min-height: 18px; margin: 9px 0 0; color: #8795a8; font-size: 11px; text-align: center; }

.auth-approval-note { display: grid; margin-top: 16px; padding: 11px 12px; border: 1px solid #dfe8f5; border-radius: 12px; grid-template-columns: 27px minmax(0,1fr); align-items: start; gap: 9px; background: #f7faff; }
.auth-approval-note > svg { width: 25px; height: 25px; padding: 4px; border-radius: 8px; color: var(--auth-blue); background: #e7f1ff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-approval-note > span { display: grid; gap: 1px; }
.auth-approval-note strong { color: #38516f; font-size: 11px; }
.auth-approval-note small { color: #7b8ba1; font-size: 10px; line-height: 1.5; }

.auth-footer { display: flex; width: min(480px,100%); margin-top: 17px; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.74); font-size: 10px; }
.auth-footer nav { display: flex; gap: 13px; }
.auth-footer a:hover { color: #fff; }
.auth-footer a:focus-visible { border-radius: 4px; outline: 2px solid rgba(255,255,255,.75); outline-offset: 3px; }

@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .auth-entry { padding: 22px 14px 18px; justify-content: flex-start; }
  .auth-brand { width: 122px; margin-bottom: 16px; }
  .auth-brand img { width: 122px; }
  .auth-card { padding: 25px 20px 22px; border-radius: 24px; box-shadow: 0 18px 48px rgba(0,18,55,.24); }
  .auth-card-head { margin-bottom: 21px; grid-template-columns: 40px minmax(0,1fr); gap: 11px; }
  .auth-welcome-icon { width: 40px; height: 40px; border-radius: 12px; }
  .auth-card-head h2 { font-size: 22px; }
  .auth-card-head p { font-size: 12px; }
  .auth-social { grid-template-columns: 1fr; }
  .auth-social-button { height: 47px; }
  .auth-footer { display: grid; margin-top: 15px; justify-items: center; }
  .auth-footer nav { gap: 12px; }
}

@media (max-width: 370px) {
  .auth-card { padding-right: 16px; padding-left: 16px; }
  .auth-card-head { grid-template-columns: 1fr; }
  .auth-welcome-icon { display: none; }
  .auth-options { align-items: flex-start; flex-direction: column; }
  .auth-footer nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-height: 820px) and (min-width: 561px) {
  .auth-entry { padding-top: 22px; padding-bottom: 18px; justify-content: flex-start; }
  .auth-brand { width: 130px; margin-bottom: 13px; }
  .auth-brand img { width: 130px; }
  .auth-card { padding-top: 25px; padding-bottom: 22px; }
  .auth-card-head { margin-bottom: 18px; }
  #loginForm { gap: 12px; }
  .auth-divider { margin-top: 17px; margin-bottom: 13px; }
  .auth-approval-note { margin-top: 12px; }
  .auth-footer { margin-top: 11px; }
}

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