/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — Gemini-Light 규격
   로그인 · 회원가입 · 비밀번호 재설정 공통 스타일
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: 40px var(--space-5);
  padding-top: max(40px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  background: #f8f9fa;
  font-family: 'Pretendard', Arial, Helvetica, sans-serif;
  letter-spacing: -0.01em;
  -webkit-user-select: none;
  user-select: none;
}
.auth-shell input { -webkit-user-select: text; user-select: text; }

/* ── Brand Header ── */
.auth-brand {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #1b2a4a;
  text-transform: uppercase;
}

/* ── Copyright Footer ── */
.auth-copyright {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-base);
  letter-spacing: 0.01em;
  color: #9ca3af;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 40px var(--space-8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: var(--space-6);
}

.auth-card--wide { max-width: 440px; }

.auth-card__head { display: grid; gap: var(--space-2); }
.auth-card__title {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-card__sub {
  margin: 0;
  font-size: var(--font-size-md);
  color: #5f6368;
  line-height: 1.5;
}

.auth-form { display: grid; gap: var(--space-4); }
.auth-field { display: grid; gap: var(--space-1); }

.auth-field label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-strong);
  color: #5f6368;
  line-height: 1.4;
}

.auth-field input {
  width: 100%;
  height: var(--height-lg);
  padding: 0 var(--space-3);
  border: 1px solid #dadce0;
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: var(--font-size-md);
  font-family: inherit;
  color: #1f1f1f;
  outline: none;
  box-sizing: border-box;
  letter-spacing: -0.01em;
  transition: border-color var(--transition-fast);
}

.auth-field input::placeholder { color: #80868b; }
.auth-field input:hover { border-color: #c4c7cc; }
.auth-field input:focus { border-color: #1b2a4a; }

.auth-submit {
  width: 100%;
  height: var(--height-lg);
  margin-top: var(--space-1);
  border: 0;
  border-radius: var(--radius-md);
  background: #1b2a4a;
  color: #ffffff;
  font-size: var(--font-size-md);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-submit:hover {
  background: #142038;
  box-shadow: 0 1px 3px rgba(27, 42, 74, 0.4);
}

.auth-submit:active { background: #0f1a2e; }
.auth-submit:disabled { background: #c4c7cc; cursor: default; box-shadow: none; }

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  color: #80868b;
}

.auth-footer a { color: #1b2a4a; text-decoration: none; font-weight: var(--font-weight-strong); transition: color var(--transition-fast); }
.auth-footer a:hover { color: #142038; }

.auth-message {
  min-height: 16px;
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: #d93025;
  text-align: center;
}

.auth-message:empty { display: none; }
.auth-message--success { color: #188038; }

.auth-helper {
  font-size: var(--font-size-base);
  color: #5f6368;
  line-height: 1.5;
  text-align: center;
}

.auth-helper a { color: #1b2a4a; text-decoration: none; font-weight: var(--font-weight-strong); }
.auth-helper a:hover { color: #142038; }

.auth-match-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-strong);
  line-height: 1.4;
}

.auth-match-badge--matched { background: #e6f4ea; color: #137333; }
.auth-match-badge--unmatched { background: #f1f3f4; color: #5f6368; }

.auth-guide {
  font-size: var(--font-size-base);
  color: #80868b;
  line-height: 1.5;
  text-align: center;
  padding: var(--space-1) 0;
}

@media (max-width: 768px) {
  .auth-shell {
    align-items: stretch;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
    background: #fff;
    gap: var(--space-5);
  }
  .auth-brand {
    font-size: var(--font-size-2xl);
    letter-spacing: 0.18em;
    text-align: center;
    padding: 0 var(--space-6);
  }
  .auth-card {
    box-shadow: none;
    border: 0;
    padding: 0 var(--space-6);
    border-radius: 0;
    gap: var(--space-5);
    max-width: none;
    width: 100%;
  }
  .auth-card__title { font-size: 22px; }
  .auth-card__sub { font-size: var(--font-size-lg); }
  /* 입력란: iOS 줌 방지(16px) + 터치 타겟(48px) */
  .auth-field input { height: var(--height-2xl); font-size: var(--font-size-xl); border-radius: 10px; padding: 0 var(--space-4); }
  .auth-field label { font-size: var(--font-size-md); }
  /* 버튼: 터치 타겟 */
  .auth-submit { height: 52px; font-size: 15px; border-radius: 10px; margin-top: var(--space-2); }
  /* 하단 링크 */
  .auth-footer { font-size: var(--font-size-lg); gap: var(--space-3); }
  .auth-message { font-size: var(--font-size-md); }
  .auth-copyright { text-align: center; padding: 0 var(--space-6); font-size: var(--font-size-base); }
  .auth-guide { text-align: left; }
  .auth-match-badge { width: 100%; box-sizing: border-box; justify-content: flex-start; }
}
