/* 로그인 페이지 전용 스타일 (login.html) */

/* ── 페이지 레이아웃 ─────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
}

.auth-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

.back-button {
    width: 44px; height: 44px;
    border: none; background: none;
    color: white; font-size: 20px; font-weight: 600;
    cursor: pointer; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.back-button:active { background: rgba(255,255,255,0.2); transform: scale(0.95); }

.auth-content {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 20px;
    max-width: 400px; margin: 0 auto; width: 100%;
}

/* ── 로고 ────────────────────────────────────────────────────── */
.auth-logo { text-align: center; margin-bottom: 40px; color: white; }
.auth-logo .logo-icon { font-size: 72px; margin-bottom: 16px; display: block; }
.auth-logo h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.auth-logo p  { font-size: 16px; opacity: 0.9; }

/* ── 폼 카드 ─────────────────────────────────────────────────── */
.auth-form {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 24px;
}
.auth-form h2 {
    font-size: 24px; font-weight: 600; color: #2c3e50;
    text-align: center; margin-bottom: 24px;
}

/* ── 알럿 ────────────────────────────────────────────────────── */
.form-alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
    font-size: 14px; display: flex; align-items: center; justify-content: space-between;
}
.form-alert.error   { background: #fee; color: #dc3545; border: 1px solid #f5c6cb; }
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-close { background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; padding: 0; margin-left: 12px; }

/* ── 비밀번호 필드 ────────────────────────────────────────────── */
.password-field { position: relative; }
.password-field .form-input { padding-right: 50px; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 18px; padding: 8px; border-radius: 6px;
    transition: background-color 0.2s;
}
.password-toggle:active { background-color: rgba(0,0,0,0.05); }

/* ── 로그인 유지 체크박스 ─────────────────────────────────────── */
.remember-me { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.remember-me input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.remember-me label { font-size: 14px; color: #495057; cursor: pointer; user-select: none; }

/* ── 계정 찾기 링크 ──────────────────────────────────────────── */
.account-recovery-links {
    display: flex; justify-content: center; gap: 16px;
    margin: 16px 0; padding: 12px 0;
    border-top: 1px solid #e9ecef;
}
.account-recovery-links a { color: #667eea; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.account-recovery-links a:hover { color: #764ba2; text-decoration: underline; }
.account-recovery-links .separator { color: #dee2e6; }

/* ── 회원가입 / 도움말 링크 블록 ────────────────────────────── */
.auth-links {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border-radius: 16px; padding: 20px; text-align: center; margin-bottom: 20px;
}
.auth-links p { color: white; margin-bottom: 12px; font-size: 14px; }
.auth-links a {
    color: white; width: 100%; text-decoration: none;
    font-weight: 600; font-size: 16px; padding: 12px 24px;
    background: rgba(255,255,255,0.2); border-radius: 12px;
    display: inline-block; transition: all 0.2s ease;
}
.auth-links a:active { background: rgba(255,255,255,0.3); transform: scale(0.98); }

.help-section {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border-radius: 16px; padding: 20px;
    color: white; font-size: 13px; line-height: 1.5; text-align: center;
}
.help-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }

/* ── 계정 찾기 / 비밀번호 찾기 모달 ─────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1000; backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-content {
    background: white; border-radius: 20px;
    max-width: 400px; width: 100%; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
    padding: 24px 24px 16px; border-bottom: 1px solid #e9ecef;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 20px; font-weight: 600; color: #2c3e50; margin: 0; }
.modal-close {
    background: none; border: none; font-size: 28px; color: #6c757d;
    cursor: pointer; padding: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; transition: background-color 0.2s;
}
.modal-close:hover { background-color: #f8f9fa; }
.modal-body { padding: 24px; }

/* ── 인증번호 ─────────────────────────────────────────────────── */
.verification-group        { position: relative; margin-bottom: 16px; }
.verification-input-wrapper{ display: flex; gap: 8px; }
.verification-input-wrapper input { flex: 1; }
.btn-verify       { min-width: 100px; white-space: nowrap; }
.verification-timer{
    position: absolute; right: 120px; top: 50%; transform: translateY(-50%);
    color: #dc3545; font-size: 14px; font-weight: 600; pointer-events: none;
}

/* ── 결과 메시지 / 비밀번호 재설정 ──────────────────────────── */
.result-message { padding: 16px; border-radius: 12px; margin-top: 16px; text-align: center; }
.result-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.result-message strong  { display: block; font-size: 18px; margin-bottom: 8px; }
.password-reset-form    { margin-top: 16px; }

/* ── 인라인 스피너 (버튼 내부) ───────────────────────────────── */
.spinner-small {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%; animation: spin 1s linear infinite; margin-right: 8px;
}

/* ── 반응형 ──────────────────────────────────────────────────── */
@media (max-height: 667px) {
    .auth-content   { padding: 70px 20px 30px; }
    .auth-logo      { margin-bottom: 24px; }
    .auth-logo .logo-icon { font-size: 56px; }
    .auth-logo h1   { font-size: 24px; }
}
