/* ============================================================
   Auth (login + signup) · night theme
   ============================================================ */
.auth-screen {
  align-items: stretch;
  text-align: left;
  padding: 14px 24px 28px;
  overflow-y: auto;
}
.auth-screen::-webkit-scrollbar { display: none; }

.auth-hero {
  text-align: center;
  padding: 24px 0 24px;
}
.auth-cross {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.auth-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #fff;
  line-height: 1.25;
}
.auth-sub {
  font-size: 13px;
  color: #B6C2E2;
  margin-top: 6px;
  letter-spacing: -0.2px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field .af-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #B6C2E2;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.auth-field .af-input {
  height: 46px;
  padding: 0 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  letter-spacing: -0.2px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.auth-field .af-input::placeholder { color: rgba(255,255,255,0.35); }
.auth-field .af-input:focus {
  border-color: rgba(240,207,106,0.5);
  background: rgba(255,255,255,0.1);
}
.auth-field.big .af-input {
  height: 56px;
  font-size: 18px;
  font-weight: 700;
}
.auth-field .af-help {
  font-size: 11.5px;
  color: #8E9BBF;
  margin-top: 1px;
  letter-spacing: -0.2px;
}
/* select (학년 / 직분) */
.af-select-wrap { position: relative; }
.auth-field .af-input.af-select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.auth-field .af-input.af-select option { color: #16203A; }
.af-select-arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: rgba(240,207,106,0.85); font-size: 12px;
}
/* 가입일 자동저장 안내 */
.signup-joined {
  display: flex; align-items: center; gap: 10px;
  background: rgba(240,207,106,0.1);
  border: 1px solid rgba(240,207,106,0.28);
  border-radius: 12px; padding: 12px 15px; margin-top: 2px;
}
.signup-joined .sj-ic { font-size: 17px; }
.signup-joined .sj-text { font-size: 12.5px; color: #D9C290; letter-spacing: -0.2px; }
.signup-joined .sj-text b { color: #FFE6A8; font-weight: 800; }
.af-error {
  font-size: 11px;
  color: #FF9AAF;
  margin-top: 2px;
  font-weight: 700;
}
.auth-field .af-input.err {
  border-color: rgba(255,120,140,0.6);
  background: rgba(255,90,110,0.08);
}
.auth-error {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,90,110,0.12);
  border: 1px solid rgba(255,120,140,0.4);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFC2CC;
  letter-spacing: -0.2px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.auth-error .ae-icon { font-size: 15px; flex: 0 0 auto; }

.auth-submit {
  width: 100%;
  margin-top: 8px;
}
.auth-submit.disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.3px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.auth-divider span { padding: 0 12px; }

.social-stack { display: flex; flex-direction: column; gap: 8px; }
.social-btn {
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.social-btn .sb-icon { font-size: 16px; font-weight: 900; }
.social-btn.kakao {
  background: #FEE500;
  color: #3C1E1E;
  border-color: #DCC400;
}
.social-btn.naver {
  background: #03C75A;
  color: #fff;
  border-color: #029E48;
}
.social-btn.apple {
  background: #000;
  color: #fff;
  border-color: #333;
}

.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #B6C2E2;
  letter-spacing: -0.2px;
}
.auth-link {
  background: none;
  border: none;
  color: #FFE08A;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Signup progress ===== */
.signup-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 8px;
  margin-bottom: 8px;
}
.sp-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.sp-dot.on {
  background: linear-gradient(90deg, #FFE08A 0%, #F0CF6A 100%);
}
.sp-text {
  font-size: 11px;
  font-weight: 700;
  color: #B6C2E2;
  letter-spacing: 0.2px;
  margin-left: 6px;
}

.signup-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0 24px;
}

.signup-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #F0CF6A;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}
.signup-h1 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin-top: 4px;
}
.signup-sub {
  font-size: 13.5px;
  color: #B6C2E2;
  margin-top: 6px;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
  line-height: 1.55;
}

/* Avatar summon (step 3) */
.avatar-summon {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 12px auto 18px;
  display: grid;
  place-items: center;
}
.as-glow {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,224,138,0.4) 0%, rgba(255,224,138,0) 70%);
  filter: blur(8px);
  animation: as-pulse 2.5s ease-in-out infinite;
}
@keyframes as-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.as-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.4));
  animation: as-float 4s ease-in-out infinite;
}
@keyframes as-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.as-sparkle {
  position: absolute;
  font-size: 16px;
  animation: as-twinkle 2s ease-in-out infinite;
  z-index: 2;
}
.as-sparkle.s1 { top: 8%;  left: 12%;  animation-delay: 0s; }
.as-sparkle.s2 { top: 18%; right: 8%;  animation-delay: 0.6s; font-size: 22px; }
.as-sparkle.s3 { bottom: 18%; left: 10%; animation-delay: 1.2s; }
@keyframes as-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.avatar-info {
  text-align: center;
  padding: 14px 16px;
  background: rgba(240,207,106,0.08);
  border: 1px solid rgba(240,207,106,0.25);
  border-radius: 14px;
  margin-bottom: 8px;
}
.ai-name {
  font-size: 16px;
  font-weight: 900;
  color: #FFE08A;
  letter-spacing: -0.4px;
}
.ai-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.9);
  margin-top: 4px;
  letter-spacing: -0.2px;
  line-height: 1.55;
}

/* Celebrate step */
.signup-celebrate {
  text-align: center;
  padding: 30px 0 20px;
}
.sc-emoji {
  font-size: 56px;
  line-height: 1;
  animation: as-twinkle 1.8s ease-in-out infinite;
}
.sc-title { margin-top: 16px !important; }
.sc-name {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE08A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sc-reward {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 22px auto 0;
  padding: 14px 18px;
  max-width: 280px;
  background: rgba(240,207,106,0.1);
  border: 1px solid rgba(240,207,106,0.3);
  border-radius: 14px;
  text-align: center;
}
.scr-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  color: #F0CF6A;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.scr-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
