/* =====================================================
   Auth - 로그인 페이지 스타일
   ===================================================== */

.page-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563a8 50%, #1a4f8a 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 배경 장식 */
.page-auth::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74,144,226,.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-auth::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(39,174,96,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* =====================================================
   카드
   ===================================================== */
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* =====================================================
   헤더
   ===================================================== */
.auth-header {
    text-align: center;
    padding: 36px 32px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(74,144,226,.4);
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 0;
}

/* =====================================================
   탭
   ===================================================== */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin: 24px 0 0;
}

.auth-tab {
    flex: 1;
    padding: 13px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border: none;
    background: none;
    transition: color .15s;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    letter-spacing: .01em;
}

.auth-tab:hover {
    color: #64748b;
}

.auth-tab.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

/* =====================================================
   바디
   ===================================================== */
.auth-body {
    padding: 28px 32px 36px;
}

/* =====================================================
   입력 필드
   ===================================================== */
.auth-form-group {
    margin-bottom: 18px;
}

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

.auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none;
}

.auth-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,.15);
    background: #fff;
}

.auth-input::placeholder {
    color: #b0bec5;
}

.auth-hint {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.5;
}

/* =====================================================
   버튼
   ===================================================== */
.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(74,144,226,.35);
    letter-spacing: .01em;
}

.auth-btn:hover {
    box-shadow: 0 8px 24px rgba(74,144,226,.45);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(74,144,226,.35);
}

.auth-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 12.5px;
}

.auth-link {
    color: #4a90e2;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 12.5px;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}

.auth-link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* =====================================================
   에러 / 성공 박스
   ===================================================== */
.auth-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.auth-success {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: #16a34a;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* =====================================================
   패널 전환
   ===================================================== */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* =====================================================
   구독 안내
   ===================================================== */
.auth-saas-link {
    text-align: center;
    margin-top: 18px;
    padding: 12px;
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    line-height: 1.6;
}

/* =====================================================
   비밀번호 설정 패널 타이틀
   ===================================================== */
.auth-panel-title {
    text-align: center;
    margin-bottom: 22px;
}

.auth-panel-title p:first-child {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 6px;
}

.auth-panel-title .auth-hint {
    margin: 0;
}
