/* 로그인/회원가입 전용 모던 인증 화면.
   Bootstrap 위에 얹는 페이지 스코프(body.auth-modern) CSS.
   - 좌: 브랜드/기능 소개, 우: 글래스 폼 패널
   - 모바일: 비주얼 패널을 접고 폼 카드만 표시
   - 외부 폰트/CDN 없이 로컬 자산만 사용한다. */

body.auth-modern {
  min-height: 100vh;
  margin: 0;
  color: #e9eefc;
  background:
    radial-gradient(900px 620px at 12% 8%, rgba(79, 140, 255, 0.28), transparent 58%),
    radial-gradient(780px 540px at 88% 88%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(560px 400px at 78% 12%, rgba(34, 211, 238, 0.10), transparent 60%),
    #060913;
}

body.auth-modern::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.30;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
}

body.auth-modern > nav.navbar { display: none; }

body.auth-modern .auth-main {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 52px) clamp(14px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.auth-modern .auth-main-wide { max-width: 1160px; }

body.auth-modern .auth-main > .alert {
  width: min(100%, 1040px);
  margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e9eefc;
  backdrop-filter: blur(12px);
}
body.auth-modern .auth-main > .alert-warning {
  border-color: rgba(255, 193, 7, 0.28);
  background: rgba(255, 193, 7, 0.10);
  color: #ffe8a3;
}
body.auth-modern .auth-main > .alert-danger {
  border-color: rgba(255, 99, 132, 0.30);
  background: rgba(255, 99, 132, 0.10);
  color: #ffd0da;
}
body.auth-modern .auth-main > .alert-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.10);
  color: #c8f7d7;
}

body.auth-modern footer {
  position: relative;
  z-index: 1;
  margin-top: 22px !important;
  color: rgba(199, 210, 232, 0.48) !important;
}

.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  width: 100%;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: rgba(10, 16, 29, 0.76);
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.52),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: auth-rise 0.62s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.auth-shell-tall { min-height: 690px; }

.auth-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 52px);
  overflow: hidden;
  background:
    radial-gradient(520px 360px at 0% 0%, rgba(79, 140, 255, 0.34), transparent 66%),
    radial-gradient(420px 340px at 95% 85%, rgba(124, 92, 255, 0.24), transparent 66%),
    linear-gradient(155deg, #101b36 0%, #0a1122 54%, #070c18 100%);
}

.auth-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.auth-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -150px;
  top: 18%;
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.20);
  filter: blur(60px);
}

.auth-brand,
.auth-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: #f4f7ff;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.auth-brand { font-size: 1.08rem; }
.auth-brand:hover,
.auth-mobile-brand:hover { color: #fff; }

.auth-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4f8cff 0%, #7c5cff 58%, #22d3ee 120%);
  box-shadow: 0 10px 26px rgba(79, 140, 255, 0.34);
}
.auth-logo svg { width: 21px; height: 21px; }

.auth-visual-body {
  max-width: 500px;
  margin: auto 0;
  padding: clamp(30px, 5vw, 58px) 0;
}

.auth-eyebrow,
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #8fb7ff;
}
.auth-eyebrow::before,
.auth-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.auth-visual h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.055em;
  color: #f7f9ff;
}
.auth-visual h1 span {
  color: transparent;
  background: linear-gradient(120deg, #83b1ff 0%, #bba8ff 52%, #6ee7f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-visual-lead {
  max-width: 430px;
  margin: 0 0 26px;
  color: rgba(214, 225, 247, 0.72);
  font-size: 0.96rem;
  line-height: 1.72;
}

.auth-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
}
.auth-feature-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #93b9ff;
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.16);
  font-weight: 700;
}
.auth-feature strong {
  display: block;
  margin-bottom: 2px;
  color: #eef4ff;
  font-size: 0.86rem;
  font-weight: 650;
}
.auth-feature span:last-child {
  display: block;
  color: rgba(199, 210, 232, 0.60);
  font-size: 0.77rem;
  line-height: 1.5;
}

.auth-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: auth-step;
}
.auth-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  color: rgba(199, 210, 232, 0.62);
  font-size: 0.82rem;
}
.auth-step::before {
  counter-increment: auth-step;
  content: "0" counter(auth-step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: rgba(199, 210, 232, 0.72);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.auth-step.is-active {
  color: #eef4ff;
  border-color: rgba(79, 140, 255, 0.28);
  background: rgba(79, 140, 255, 0.09);
}
.auth-step.is-active::before {
  color: #fff;
  background: linear-gradient(135deg, #4f8cff, #7c5cff);
  box-shadow: 0 8px 20px rgba(79, 140, 255, 0.26);
}
.auth-step strong { color: #eef4ff; font-weight: 650; }

.auth-visual-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: rgba(199, 210, 232, 0.48);
  font-size: 0.73rem;
  letter-spacing: 0.01em;
}
.auth-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.10), 0 0 16px rgba(52, 211, 153, 0.7);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 42%),
    rgba(7, 11, 21, 0.48);
}

.auth-panel-inner { width: 100%; max-width: 392px; }

.auth-mobile-brand { display: none; margin-bottom: 30px; }

.auth-head h2 {
  margin: 0 0 8px;
  color: #f8faff;
  font-size: clamp(1.72rem, 3vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -0.045em;
}
.auth-sub {
  margin: 0;
  color: rgba(199, 210, 232, 0.58);
  font-size: 0.86rem;
  line-height: 1.65;
}

.auth-form { margin-top: 28px; }

.auth-field { margin-bottom: 17px; }
.auth-field > label {
  display: block;
  margin-bottom: 8px;
  color: #cbd7ee;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.auth-input-wrap { position: relative; }

body.auth-modern .form-control {
  width: 100%;
  min-height: 49px;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #f1f5ff;
  font-size: 0.9rem;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
body.auth-modern .form-control::placeholder { color: rgba(199, 210, 232, 0.34); }
body.auth-modern .form-control:hover { border-color: rgba(255, 255, 255, 0.17); }
body.auth-modern .form-control:focus {
  border-color: rgba(110, 160, 255, 0.82);
  background: rgba(79, 140, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.13);
  color: #fff;
}
body.auth-modern .form-control:-webkit-autofill,
body.auth-modern .form-control:-webkit-autofill:hover,
body.auth-modern .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #f1f5ff;
  box-shadow: 0 0 0 1000px #111a2e inset;
  transition: background-color 9999s ease-out;
}
body.auth-modern .auth-field input[type="password"] { padding-right: 4.2rem; }

.auth-eye {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  padding: 0.42rem 0.58rem;
  background: transparent;
  color: rgba(199, 210, 232, 0.55);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
}
.auth-eye:hover,
.auth-eye:focus-visible { color: #bcd3ff; background: rgba(255, 255, 255, 0.055); }

.auth-help,
.auth-field .form-text {
  margin-top: 7px;
  color: rgba(199, 210, 232, 0.42);
  font-size: 0.73rem;
  line-height: 1.55;
}
.auth-help ul,
.auth-field .form-text ul {
  margin: 0;
  padding-left: 1.05rem;
}
.auth-help li,
.auth-field .form-text li { margin: 2px 0; }

.auth-field-error {
  margin-top: 7px;
  color: #ff9fb0;
  font-size: 0.76rem;
  line-height: 1.45;
}
.auth-field-error .errorlist,
.auth-alert .errorlist {
  margin: 0;
  padding-left: 1rem;
}
.auth-field-error .errorlist li,
.auth-alert .errorlist li { margin: 2px 0; }

.auth-alert {
  margin-bottom: 17px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 99, 132, 0.28);
  border-radius: 12px;
  background: rgba(255, 99, 132, 0.09);
  color: #ffd0da;
  font-size: 0.78rem;
  line-height: 1.55;
}

.auth-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #4f8cff 0%, #6d6bff 56%, #22b8d9 120%);
  box-shadow: 0 16px 34px rgba(66, 111, 255, 0.27);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.auth-submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(66, 111, 255, 0.34);
  filter: brightness(1.04);
}
.auth-submit:active { transform: translateY(0); box-shadow: 0 10px 24px rgba(66, 111, 255, 0.24); }
.auth-submit:focus-visible { outline: 2px solid #9fc0ff; outline-offset: 3px; }
.auth-submit span { font-size: 1.05rem; line-height: 1; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 15px;
  color: rgba(199, 210, 232, 0.36);
  font-size: 0.7rem;
  white-space: nowrap;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.auth-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #dbe6fb;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 620;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.auth-secondary:hover {
  border-color: rgba(110, 160, 255, 0.42);
  background: rgba(79, 140, 255, 0.08);
  color: #fff;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.73rem;
}
.auth-links a { color: rgba(199, 210, 232, 0.52); text-decoration: none; }
.auth-links a:hover { color: #bcd3ff; text-decoration: underline; text-underline-offset: 3px; }

.auth-note {
  margin: 20px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(199, 210, 232, 0.44);
  font-size: 0.71rem;
  line-height: 1.6;
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.996); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-visual { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-panel { padding: clamp(28px, 7vw, 44px); }
  .auth-panel-inner { max-width: 430px; }
}

@media (max-width: 575px) {
  body.auth-modern .auth-main { padding: 14px; }
  .auth-shell { border-radius: 22px; }
  .auth-panel { padding: 26px 20px 28px; }
  .auth-kicker { margin-bottom: 12px; }
  .auth-form { margin-top: 23px; }
  body.auth-modern footer { margin-top: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell { animation: none; }
  .auth-submit,
  .auth-secondary,
  .form-control { transition: none; }
}
