/* =============================================================
   Auth.css — 인증 페이지 스타일 (좌: 소개 / 우: 로그인)
   ============================================================= */

/* ─── 기본 레이아웃 ─────────────────────────────────────────── */
.page-auth {
    min-height: 100vh;
    display: flex;
}

/* ─── 좌측: 소개 패널 ───────────────────────────────────────── */
.auth-intro {
    flex: 1;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

/* 배경 장식 원 */
.auth-intro::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -120px;
    right: -160px;
    pointer-events: none;
}
.auth-intro::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 32px;
    width: fit-content;
}

.intro-badge i { font-size: 12px; }

.intro-headline {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.intro-headline span {
    color: #60a5fa;
}

.intro-desc {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 440px;
}

/* 기능 목록 */
.intro-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 56px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 18px;
    color: #60a5fa;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* 하이숲 제공 배지 */
.intro-powered {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    width: fit-content;
}

.intro-powered .powered-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-powered .powered-logo i {
    font-size: 15px;
    color: #fff;
}

.intro-powered .powered-text {
    display: flex;
    flex-direction: column;
}

.intro-powered .powered-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.intro-powered .powered-text span {
    font-size: 11px;
    color: #64748b;
}

/* ─── 우측: 로그인 패널 ──────────────────────────────────────── */
.auth-panel {
    width: 480px;
    min-width: 480px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 52px;
    overflow-y: auto;
}

.auth-panel-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.auth-panel-logo i {
    font-size: 26px;
    color: #3b82f6;
}

.auth-panel-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.auth-panel-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-panel-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ─── 탭 ────────────────────────────────────────────────────── */
.tab-bar {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 9px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.tab-btn.active {
    background-color: #fff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* ─── 폼 ────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background-color: #fafafa;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
    background-color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    background-color: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color .2s, transform .1s;
    margin-top: 4px;
    letter-spacing: 0.2px;
}

.btn-submit:hover { background-color: #1d4ed8; }
.btn-submit:active { transform: scale(.99); }
.btn-submit:disabled { background-color: #93c5fd; cursor: not-allowed; }

/* ─── 에러 메시지 ────────────────────────────────────────────── */
.error-msg {
    display: none;
    padding: 12px 14px;
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ─── 링크 영역 ──────────────────────────────────────────────── */
.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.auth-links a {
    color: #3b82f6;
    font-weight: 500;
}

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

/* ─── 구분선 ──────────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
    color: #cbd5e1;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ─── 하이숲 안내 ─────────────────────────────────────────────── */
.hiforest-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hiforest-notice i {
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
}

.hiforest-notice span {
    font-size: 12px;
    color: #1e40af;
    line-height: 1.5;
}

/* ─── 하이숲 바로가기 버튼 (좌측) ────────────────────────────── */
.btn-hiforest {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    width: fit-content;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    text-decoration: none;
}

.btn-hiforest:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-hiforest .powered-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-hiforest .powered-logo i {
    font-size: 16px;
    color: #fff;
}

.btn-hiforest .powered-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.btn-hiforest .powered-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.btn-hiforest .powered-text span {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.btn-hiforest .powered-arrow {
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

/* ─── auth-links 구분자 ───────────────────────────────────────── */
.auth-links-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ─── 반응형 ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-intro { display: none; }
    .auth-panel {
        width: 100%;
        min-width: unset;
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .auth-panel { padding: 32px 24px; }
}

/* ─── 비밀번호 찾기 성공 상태 ──────────────────────────────────── */
.success-state {
    text-align: center;
    padding: 24px 0;
}
.success-icon {
    margin-bottom: 16px;
}
.success-state i,
.success-icon i {
    font-size: 52px;
    color: #22c55e;
    display: block;
}
.success-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.success-state p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}
