/* ============================================================
   认证三页共用 · 右侧文字修饰区(hero-side)
   适用于:login.php / register.php / forgot_password.php
   加载顺序:页面 CSS(login.css / register.css / forgot-password.css)
             → 本文件最后收口
   内容:主容器补宽(卡片靠左、右侧留文案区)
         竖排诗句(汤显宾宋)+ 印章 + 副标题 + 功能亮点 + 脚注
   ============================================================ */

/* ---------- 主容器补宽:右侧留给文案区 ---------- */
.main-container {
    gap: clamp(32px, 5vw, 80px);
    padding-right: clamp(28px, 6vw, 96px);
}
.card-tilt { flex-shrink: 0; }

/* ---------- 右侧文字修饰区 ---------- */
.hero-side {
    margin-left: auto;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    transform: translateZ(12px);          /* 随主容器透视轻微浮出,JS 倾斜时叠加反向视差 */
    will-change: transform;               /* transform 每帧被 JS 改写,提升合成层避免发光文字反复重绘 */
}

/* 竖排诗句:主句大字 + 副句小字,右起直书 */
.hero-poetry-wrap {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    animation: authFadeUp .7s cubic-bezier(.22, 1, .36, 1) .50s backwards;
}
.hero-poetry {
    writing-mode: vertical-rl;
    min-height: 300px;
}
.hero-poetry span { display: block; }
.hero-poetry .poetry-main {
    font-family: 'TangXianBinSong', 'STKaiti', 'KaiTi', serif;
    font-size: clamp(26px, 2.4vw, 36px);
    letter-spacing: 12px;
    color: var(--text-hi, #f1f5f9);
    text-shadow: 0 0 26px rgba(125, 211, 252, .35);
    margin-left: 16px;
}
.hero-poetry .poetry-sub {
    font-family: 'TangXianBinSong', 'STKaiti', 'KaiTi', serif;
    font-size: clamp(17px, 1.6vw, 24px);
    letter-spacing: 9px;
    color: rgba(148, 163, 184, .85);
    text-shadow: 0 0 18px rgba(125, 211, 252, .18);
}

/* 印章:诗句落款的一点暖色 */
.hero-seal {
    writing-mode: horizontal-tb;
    background: linear-gradient(135deg, #c2454e, #9d3a42);
    color: #ffe9ea;
    font-family: 'TangXianBinSong', 'STKaiti', 'KaiTi', serif;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 7px 8px;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(155, 58, 66, .4), inset 0 1px 0 rgba(255, 255, 255, .18);
    opacity: .92;
    user-select: none;
}

/* 副标题:顶部一道天蓝短划线 */
.hero-sub {
    font-size: 13px;
    color: var(--text-mid, #94a3b8);
    letter-spacing: 1.5px;
    line-height: 1.7;
    margin: 0;
    padding-top: 18px;
    position: relative;
    animation: authFadeUp .7s cubic-bezier(.22, 1, .36, 1) .65s backwards;
}
.hero-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(125, 211, 252, .8), transparent);
}

/* 功能亮点:图标方块 + 标题 + 一句话 */
.hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: authFadeUp .7s cubic-bezier(.22, 1, .36, 1) .80s backwards;
}
.hero-features li {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}
.hero-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .35);
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hero-features b {
    display: block;
    font-size: 14px;
    color: var(--text-hi, #f1f5f9);
    font-weight: 600;
    margin-bottom: 2px;
}
.hero-features span {
    font-size: 12.5px;
    color: var(--text-mid, #94a3b8);
    line-height: 1.55;
}

/* 脚注 */
.hero-footnote {
    font-size: 12px;
    color: rgba(148, 163, 184, .55);
    letter-spacing: 1px;
    animation: authFadeUp .7s cubic-bezier(.22, 1, .36, 1) .95s backwards;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 响应式:窄屏隐藏文案区,卡片居中 ---------- */
@media (max-width: 1100px) {
    .hero-side { display: none; }
    .main-container {
        justify-content: center;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ---------- 减弱动效偏好(与页面 CSS 的清单合并生效) ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-side,
    .hero-side * {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
