/* Auth.css — 인증 페이지 전용 스타일 */
.page-auth {
    min-height: 100vh;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ── 분할 레이아웃 ── */
.auth-split {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.13);
}

/* ── 왼쪽 패널 (소개) ── */
.auth-left {
    background: linear-gradient(145deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* 배경 장식 원 */
.auth-left::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -80px; right: -80px;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    bottom: -40px; left: -40px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}
.auth-brand-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900; color: #fff;
    backdrop-filter: blur(4px);
}
.auth-brand-name {
    font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px;
}
.auth-brand-name span { color: rgba(255,255,255,.75); }

.auth-left-headline {
    font-size: 26px; font-weight: 700; line-height: 1.35;
    margin-bottom: 12px; color: #fff;
}
.auth-left-sub {
    font-size: 14px; color: rgba(255,255,255,.75);
    line-height: 1.7; margin-bottom: 36px;
}

.auth-features {
    display: flex; flex-direction: column; gap: 14px;
}
.auth-feature-item {
    display: flex; align-items: flex-start; gap: 12px;
}
.auth-feature-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff;
}
.auth-feature-text h4 {
    font-size: 13.5px; font-weight: 600; color: #fff; margin: 0 0 2px;
}
.auth-feature-text p {
    font-size: 12px; color: rgba(255,255,255,.65); margin: 0; line-height: 1.5;
}

.auth-left-badge {
    margin-top: 40px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px; color: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    width: fit-content;
}

/* ── 오른쪽 패널 (로그인 폼) ── */
.auth-right {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
}

.auth-right-header {
    margin-bottom: 28px;
}
.auth-right-header h2 {
    font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 4px;
}
.auth-right-header p {
    font-size: 13px; color: #64748b; margin: 0;
}

/* ── 카드 (기존 구조 호환) ── */
.auth-wrap { width: 100%; max-width: 440px; }

.auth-card {
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* 탭 */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}
.auth-tab {
    flex: 1;
    padding: 12px 8px;
    font-size: 13px; font-weight: 500;
    background: none; border: none;
    color: #64748b; cursor: pointer;
    transition: color .15s, background .15s;
    border-bottom: 2px solid transparent;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.auth-tab:hover  { background: #f8fafc; color: #0f172a; }
.auth-tab.active { color: #6366f1; border-bottom-color: #6366f1; }

/* 폼 본문 */
.auth-body { padding: 24px 0 0; }

/* 카드 헤더 (비밀번호 설정/찾기) */
.auth-card-header {
    padding: 0 0 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}
.auth-card-header .btn-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #64748b; background: none; border: none;
    padding: 0; margin-bottom: 12px; cursor: pointer;
    transition: color .15s;
}
.auth-card-header .btn-back:hover { color: #0f172a; }
.auth-card-header h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.auth-card-header p  { font-size: 13px; color: #64748b; margin: 0; }

/* 비밀번호 토글 */
.input-group-pw { position: relative; }
.input-group-pw .form-control { padding-right: 40px; }
.btn-pw-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 15px; padding: 0;
}
.btn-pw-toggle:hover { color: #64748b; }

/* 유틸 */
.w-full        { width: 100%; }
.text-muted-sm { font-size: 12px; color: #94a3b8; }
.link-btn      { background: none; border: none; color: #6366f1; font-size: 12px; cursor: pointer; padding: 0; white-space: nowrap; margin-left: 8px; }
.link-btn:hover { text-decoration: underline; }

.auth-footer-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px; flex-wrap: wrap; gap: 4px;
}

/* 성공 아이콘 */
.auth-success-icon {
    font-size: 40px; color: #22c55e;
    display: inline-block; margin-bottom: 4px;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .auth-split {
        grid-template-columns: 1fr;
        max-width: 440px;
        min-height: auto;
    }
    .auth-left {
        padding: 32px 28px;
    }
    .auth-left-headline { font-size: 20px; }
    .auth-features { display: none; } /* 모바일에서 기능 목록 숨김 */
    .auth-left-badge { margin-top: 20px; }
    .auth-right { padding: 32px 28px; }
}

@media (max-width: 480px) {
    .page-auth { padding: 0; align-items: stretch; }
    .auth-split { border-radius: 0; box-shadow: none; max-width: 100%; }
    .auth-left { padding: 24px 20px; }
    .auth-right { padding: 24px 20px; }
    .auth-brand-name { font-size: 18px; }
    .auth-left-headline { font-size: 18px; }
    .auth-left-sub { display: none; }
}
