/* ==========================================================================
   易发卡 · 页面层 page-auth.css
   适用：登录页 / 注册页（layout/auth.html）
   依赖：base.css 的设计令牌与通用组件
   ========================================================================== */

.yf-auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 600px at 8% -10%, #e7efff 0%, rgba(231, 239, 255, 0) 62%),
        var(--yf-bg);
}

.yf-auth {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    max-width: 1040px;
    width: calc(100% - 96px);
    margin: 40px auto;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--yf-shadow);
    border: 1px solid var(--yf-line);
}

/* 左侧品牌区 */
.yf-auth-brand {
    position: relative;
    padding: 48px 44px;
    color: #fff;
    background: linear-gradient(150deg, var(--yf-dark) 0%, #1f3350 52%, #2a4d7f 100%);
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
}

.yf-auth-brand::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 140, 255, .35), rgba(84, 140, 255, 0) 68%);
    pointer-events: none;
}

.yf-auth-brand-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.yf-auth-brand-head img {
    width: 38px;
    height: 38px;
    flex: none;
}

.yf-auth-brand-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.32;
    letter-spacing: -.04em;
    font-weight: 850;
}

.yf-auth-brand-title span {
    color: #8fb6ff;
}

.yf-auth-brand-desc {
    margin: 0;
    max-width: 26em;
    font-size: 14px;
    line-height: 1.75;
    color: #c7d5ea;
}

.yf-auth-points {
    display: grid;
    gap: 11px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #d5e1f2;
}

.yf-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.yf-auth-points li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: #8fb6ff;
}

.yf-auth-brand-foot {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 34px;
    font-size: 12px;
    color: #93a6c4;
}

/* 右侧表单区 */
.yf-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px clamp(24px, 4vw, 52px);
    background: #fff;
}

.yf-auth-panel-inner {
    width: 100%;
    max-width: 380px;
}

.yf-auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 26px;
    padding: 4px;
    border-radius: 100px;
    background: #f1f5fb;
    width: fit-content;
}

.yf-auth-tabs a {
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--yf-muted);
}

.yf-auth-tabs a.is-active {
    background: #fff;
    color: var(--yf-primary);
    box-shadow: 0 3px 10px rgba(23, 36, 55, .08);
}

.yf-auth-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.yf-auth-sub {
    margin: 0 0 24px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--yf-muted);
}

.yf-auth-foot {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--yf-muted);
    text-align: center;
}

.yf-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 26px;
    font-size: 12px;
    color: var(--yf-muted);
}

.yf-auth-back:hover {
    color: var(--yf-primary);
}

/* 验证码行 */
.yf-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yf-captcha .yf-input {
    flex: 1;
    min-width: 0;
}

.yf-captcha img {
    flex: none;
    width: 100px;
    height: 42px;
    border: 1px solid #d4ddea;
    border-radius: var(--yf-radius-sm);
    background: #f8fafc;
    cursor: pointer;
    object-fit: cover;
}

/* 页脚 */
.yf-auth-copyright {
    padding: 0 24px 30px;
    text-align: center;
    font-size: 12px;
    color: var(--yf-muted);
}

.yf-auth-copyright a {
    color: var(--yf-muted);
}

/* 响应式：≤900px 品牌区收成一条窄横幅，保证表单（含验证码）在首屏内可见 */
@media (max-width: 900px) {
    .yf-auth {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        align-content: start;
        width: calc(100% - 32px);
        margin: 16px auto;
        border-radius: 18px;
    }

    .yf-auth-brand {
        padding: 14px 20px;
        gap: 8px;
        justify-content: flex-start;
    }

    .yf-auth-brand-head {
        font-size: 15px;
        gap: 8px;
    }

    .yf-auth-brand-head img {
        width: 26px;
        height: 26px;
    }

    .yf-auth-brand-title,
    .yf-auth-brand-desc,
    .yf-auth-points,
    .yf-auth-brand-foot {
        display: none;
    }

    .yf-auth-brand::after {
        inset: -40% -10% auto auto;
        width: 200px;
        height: 200px;
    }

    .yf-auth-panel {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 18px 20px 24px;
    }

    .yf-auth-tabs {
        margin-bottom: 18px;
    }

    .yf-auth-sub {
        margin-bottom: 18px;
    }

    .yf-auth-back {
        margin-top: 18px;
    }
}

/* ≤560px：贴边满屏，手机上一屏到底 */
@media (max-width: 560px) {
    .yf-auth {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: 0;
        min-height: calc(100vh - 46px);
    }

    .yf-auth-brand {
        padding: 13px 16px;
    }

    .yf-auth-panel {
        padding: 16px 16px 26px;
    }

    .yf-auth-title {
        font-size: 19px;
    }

    .yf-auth-tabs a {
        padding: 7px 18px;
    }

    .yf-captcha img {
        width: 92px;
        height: 40px;
    }

    .yf-auth-copyright {
        padding: 12px 16px 16px;
    }
}
