/**
 * NanoNside - 이메일 찾기/비밀번호 찾기/재설정 페이지 스타일 v2.0
 */

/* ===== 찾기 카드 ===== */
.find-card {
    max-width: 440px;
}

/* ===== 안내 문구 ===== */
.find-description {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===== 인증 방식 탭 (레거시 호환) ===== */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.auth-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:hover {
    background-color: #f9fafb;
}

.auth-tab.active {
    background-color: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

/* ===== 인증 대상 섹션 ===== */
.verify-target-section {
    display: block;
}

.verify-target-section.hidden {
    display: none;
}

/* ===== 인증번호 타이머 위치 조정 ===== */
.verify-input-group {
    position: relative;
}

.verify-input-group .input-with-button {
    position: relative;
}

.verify-timer {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
    pointer-events: none;
}

/* ===== 찾기 결과 영역 ===== */
.find-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.find-result.hidden {
    display: none;
}

.find-result-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.find-result-info {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.info-row:first-child {
    padding-top: 0;
}

.info-row:last-child {
    padding-bottom: 0;
}

.info-row + .info-row {
    border-top: 1px solid #e5e7eb;
}

.info-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

/* ===== 결과 액션 버튼들 ===== */
.find-result-actions {
    display: flex;
    gap: 0.75rem;
}

.find-result-actions .btn-primary,
.find-result-actions .btn-secondary {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
}

/* ===== 이메일 목록 (복수 결과) ===== */
.email-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.email-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.email-list-item:last-child {
    border-bottom: none;
}

.email-list-item .masked-email {
    font-weight: 600;
    color: #1f2937;
}

.email-list-item .created-at {
    font-size: 0.75rem;
    color: #9ca3af;
}

.hint-text {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1rem;
}

/* ===== 결과 없음 ===== */
.no-result {
    text-align: center;
    padding: 1.5rem 1rem;
}

.no-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #f3f4f6;
    border-radius: 50%;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-result-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-result-hint {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ===== 토큰 오류 화면 ===== */
.token-error {
    text-align: center;
    padding: 2rem 1rem;
}

.token-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #fee2e2;
    border-radius: 50%;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.token-error-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.token-error-message {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.token-error .btn-primary {
    display: inline-block;
}

/* ===== 발송 성공 섹션 ===== */
.success-section {
    text-align: center;
    padding: 2rem 1rem;
}

.success-section.hidden {
    display: none;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    border-radius: 50%;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.success-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.success-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.success-actions .btn-primary {
    width: 100%;
}

/* ===== 메시지 영역 ===== */
.message-area {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #1d4ed8;
    font-size: 0.875rem;
    text-align: center;
}

.message-area.hidden {
    display: none;
}

/* ===== 마스킹된 이메일 ===== */
.masked-email {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ===== 하단 링크 ===== */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-links a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #d97706;
    text-decoration: underline;
}

.auth-links-divider {
    margin: 0 0.5rem;
    color: #d1d5db;
}

/* ===== 반응형 ===== */
@media (max-width: 640px) {
    .find-card {
        max-width: 100%;
    }

    .auth-tabs {
        flex-direction: column;
    }

    .find-result-actions {
        flex-direction: column;
    }

    .verify-timer {
        right: 10px;
        font-size: 0.75rem;
    }

    .verify-input-group .form-input {
        padding-right: 70px;
    }

    .email-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .success-section {
        padding: 1.5rem 0.5rem;
    }

    .no-result {
        padding: 1rem 0.5rem;
    }
}
