/*
 * base.css — Chiflow 공용 프론트 스타일
 * 브랜드 색상은 landing.css의 :root(--brand-primary, --brand-secondary 등)를 그대로 상속
 * 이 파일은 auth 폼과 flash 스타일만 다룸 (헤더/푸터/버튼은 landing.css)
 */

/* ===== Flash 메시지 ===== */
.flash-container {
    max-width: 720px;
    margin: 12px auto 0;
    padding: 0 20px;
}
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}
.flash-error   { background: #FEE2E2; color: #991B1B; }
.flash-success { background: #D1FAE5; color: #065F46; }
.flash-info    { background: #DBEAFE; color: #1E40AF; }
.flash-warning { background: #FEF3C7; color: #92400E; }

/* ===== 슬림 푸터 (auth/mypage 등) ===== */
.footer-slim {
    border-top: 1px solid var(--line, #E5EDF2);
    background: transparent;
    padding: 24px 20px;
}
.footer-slim .footer-bottom {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.7;
}

/* ===== Auth (로그인/회원가입) ===== */
.auth-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line, #E5EDF2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(13, 27, 94, 0.05);
}
.auth-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 24px;
    text-align: center;
    color: var(--primary, #0D1B5E);
    letter-spacing: -0.5px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-form label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #4b5563;
    font-weight: 700;
    gap: 6px;
}
.auth-form input {
    padding: 12px 14px;
    border: 1px solid var(--line, #E5EDF2);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: #1a2340;
    outline: none;
    transition: border-color .15s;
}
.auth-form input:focus {
    border-color: var(--secondary, #00C2D6);
    box-shadow: 0 0 0 3px rgba(0, 194, 214, 0.15);
}
.auth-form .remember {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    font-weight: 600;
}
.auth-form .remember input {
    width: auto;
    padding: 0;
}
.auth-form button[type=submit] {
    margin-top: 8px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: var(--primary, #0D1B5E);
    color: white;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: -0.3px;
    transition: transform .15s, background .15s;
}
.auth-form button[type=submit]:hover {
    background: #172a7f;
    transform: translateY(-1px);
}
.auth-alt {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}
.auth-alt a {
    color: var(--primary, #0D1B5E);
    font-weight: 800;
}

/* ===== Google 로그인 버튼 ===== */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line, #E5EDF2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #202124;
    text-decoration: none;
    letter-spacing: -0.2px;
    transition: box-shadow .15s, transform .15s;
}
.btn-google:hover {
    box-shadow: 0 4px 12px rgba(13, 27, 94, 0.08);
    transform: translateY(-1px);
}
.btn-google svg {
    flex-shrink: 0;
}

.auth-divider {
    text-align: center;
    margin: 18px 0 10px;
    position: relative;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line, #E5EDF2);
    z-index: 0;
}
.auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

/* ===== 추천 혜택 안내 배너 ===== */
.referral-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 6px 0 4px;
    background: linear-gradient(135deg, #F0FBFD, #E0F7FA);
    border: 1px solid var(--secondary, #00C2D6);
    border-radius: 10px;
}
.referral-benefit-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.referral-benefit-body {
    flex: 1;
    min-width: 0;
}
.referral-benefit-body b {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: var(--primary, #0D1B5E);
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}
.referral-benefit-body p {
    margin: 0;
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.5;
}
.referral-benefit-body p b {
    display: inline;
    color: var(--secondary, #009AAB);
    font-weight: 900;
    font-size: 12px;
    margin: 0;
}
