*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Pretendard", Arial, sans-serif;
}

.page-wrapper {
  height: 100%;
}

.body-wrapper {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(45, 70, 105, 0.5), transparent 60%),
    linear-gradient(160deg, #16212e 0%, #14181d 60%, #101214 100%);
}

.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-space-32);
  width: 380px;
  padding: var(--layout-space-32);
  border: 1px solid var(--color-semantic-border-layout-overlay);
  border-radius: var(--radius-lg);
  background-color: var(--color-semantic-surface-layout-overlay);
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.35);
}

.auth-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card__header img {
   height: 14px;
}

.auth-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--font-height-tight);
  text-align: center;
  color: var(--color-semantic-text-primary);
}

.auth-card__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-space-12);
  width: 100%;
}

.auth-card__email-group {
  display: flex;
  align-items: flex-end;
  gap: var(--layout-space-8);
  width: 100%;
}
.auth-card__email-group > * {
  flex: 1;
  min-width: 0;
}
.auth-card__email-group .select-field-wrap .select-field {
  width: 100%;
}

.auth-card__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--font-height-compact);
  color: var(--color-semantic-text-secondary);
  text-underline-offset: 25%;
  text-decoration-line: underline;
}

.auth-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-space-8);
  width: 100%;
}

.auth-card__actions > * {
  width: 100%;
}

.auth-footer {
  display: flex;
  position: fixed;
  bottom: 28px;
  left: 50%;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--font-height-compact);
  text-align: center;
  color: var(--color-semantic-text-secondary);
  transform: translateX(-50%);
}

/* ── 로그인 ── */
#login-form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login .auth-card__header {
  align-items: flex-start;
  gap: var(--layout-space-4);
  padding-top: var(--layout-space-8);
}

.page-login .auth-card__title { 
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 4.8px;
}

.auth-card__password-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--layout-space-4);
  width: 100%;
}

/* ── 회원가입 / 비밀번호 찾기 (마법사 공통) ── */

.auth-progress {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-semantic-surface-group-default);
  overflow: hidden;
}

.auth-card__signup_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-space-16);
}

.auth-card__signup_header img {
  width: 28px;
  height: 28px;
}

.auth-card__title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-space-4);
}

.auth-progress__bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-semantic-control-progress-indicator-indicator);
  transition: width 0.35s ease;
}

.auth-step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-space-12);
  width: 100%;
}

.auth-step.is-active {
  display: flex;
}

.auth-card__subtitle {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--font-height-normal);
  text-align: center;
  color: var(--color-semantic-text-tertiary);
}

.field-error-text {
  width: 100%;
  min-height: 18px;
  font-size: var(--font-size-sm);
  color: var(--color-semantic-text-alert);
  text-align: left;
}

.auth-validation-list {
  display: flex;
  flex-direction: column;
  gap: var(--layout-space-4);
  width: 100%;
}

.auth-resend-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--layout-space-8);
  width: 100%;
}

.auth-resend-timer {
  font-size: var(--font-size-sm);
  color: var(--color-semantic-text-secondary);
}

.auth-agree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--layout-space-8);
  font-size: var(--font-size-sm);
  color: var(--color-semantic-text-secondary);
  cursor: pointer;
}