/**
 * 管理后台登录页样式 v3.0（2026-10-06）
 * 设计：左右分屏（左侧品牌叙事面板 + 右侧表单区），品牌金 #D4AF37 / 墨色 #1B160B
 * 原则：表单字段、提交端点、验证码逻辑不变，仅视觉重构
 */

:root {
    --lg-gold: #D4AF37;
    --lg-gold-deep: #9F7C1F;
    --lg-gold-bright: #E9CD7C;
    --lg-ink: #1B160B;
    --lg-ink-2: #3D3628;
    --lg-text: #57503F;
    --lg-muted: #97907D;
    --lg-line: #E7E0CC;
    --lg-panel: #FAF8F1;
    --lg-focus-ring: rgba(212, 175, 55, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== 布局骨架 ========== */
.login-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ========== 左侧品牌面板 ========== */
.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 46%;
    min-height: 100vh;
    padding: 8vh 5.5vw;
    overflow: hidden;
    background: linear-gradient(160deg, #262012 0%, #17130A 55%, #0E0B06 100%);
    color: #F5EFDE;
}

.brand-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.glow-a {
    top: -22%;
    left: -14%;
    width: 62%;
    height: 62%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 68%);
}

.glow-b {
    bottom: -26%;
    right: -16%;
    width: 56%;
    height: 56%;
    background: radial-gradient(circle, rgba(68, 114, 176, 0.18) 0%, transparent 70%);
}

/* 细网格底纹 */
.brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 239, 222, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 239, 222, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 42% 45%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 80% at 42% 45%, #000 30%, transparent 78%);
}

.brand-body {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.brand-mark {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    color: var(--lg-gold-bright);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    background: rgba(212, 175, 55, 0.08);
}

.brand-headline {
    margin-top: 34px;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.42;
    color: #FBF7EA;
}

.brand-points {
    margin-top: 40px;
    list-style: none;
}

.brand-points li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245, 239, 222, 0.78);
}

.brand-points li + li {
    border-top: 1px solid rgba(245, 239, 222, 0.08);
}

.brand-points i {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lg-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.65);
    transform: translateY(-2px);
}

.brand-foot {
    position: absolute;
    left: 5.5vw;
    right: 5.5vw;
    bottom: 4.5vh;
    z-index: 2;
    font-size: 12.5px;
    color: rgba(245, 239, 222, 0.38);
}

/* 右侧分隔金色细线 */
.login-panel {
    position: relative;
    border-left: 1px solid rgba(212, 175, 55, 0.22);
}

/* ========== 右侧表单区 ========== */
.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 100vh;
    padding: 40px 24px;
    background: var(--lg-panel);
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-form {
    width: 100%;
    position: relative;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 22px;
}

.login-logo img {
    max-height: 46px;
    max-width: 220px;
}

/* 标题 */
.login-title {
    text-align: center;
    color: var(--lg-ink);
    font-size: 22px;
    font-weight: 700;
}

/* “了解本平台”入口 */
.login-subtitle {
    margin-top: 8px;
    text-align: center;
    color: var(--lg-gold-deep);
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.login-subtitle:hover {
    opacity: 0.72;
}

/* 网站描述弹窗内容盒 */
.site-desc-box {
    padding: 20px;
    line-height: 1.7;
    font-size: 14px;
    color: #444;
    max-height: 60vh;
    overflow-y: auto;
}

/* 登录选项卡 */
.login-tabs {
    display: flex;
    justify-content: center;
    margin: 26px 0 24px;
    border-bottom: 1px solid var(--lg-line);
}

.login-tab {
    padding: 12px 20px;
    color: var(--lg-muted);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.login-tab:hover {
    color: var(--lg-gold-deep);
}

.login-tab.active {
    color: var(--lg-ink);
    font-weight: 600;
    border-bottom-color: var(--lg-gold);
}

/* 表单组 */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

/* 输入框 */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group .layui-input {
    width: 100%;
    height: 48px;
    padding: 0 15px 0 44px;
    border: 1px solid var(--lg-line);
    border-radius: 10px;
    background-color: #FFFFFF;
    font-size: 14px;
    color: var(--lg-ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 2px rgba(27, 22, 11, 0.03);
}

.form-group input:focus,
.form-group .layui-input:focus {
    border-color: var(--lg-gold);
    box-shadow: 0 0 0 3px var(--lg-focus-ring);
    outline: none;
}

.form-group input::placeholder,
.form-group .layui-input::placeholder {
    color: #A8A08A;
}

/* 输入框图标（内联 SVG） */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 2;
    color: #A8A08A;
    transition: color 0.25s ease;
}

.form-group:focus-within .input-icon {
    color: var(--lg-gold-deep);
}

/* 验证码输入框 */
.captcha-box input {
    padding-right: 132px;
}

/* 验证码图片 */
.captcha-img {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 112px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.captcha-img img {
    width: 100%;
    height: 100%;
    display: block;
}

/* 短信验证码 */
.sms-box {
    display: flex;
}

.sms-box.hidden {
    display: none;
}

.sms-box input {
    padding-right: 104px;
}

/* 发送验证码按钮 */
.sms-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 12px;
    height: 36px;
    background: rgba(212, 175, 55, 0.14);
    color: var(--lg-gold-deep);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sms-btn:hover {
    background: rgba(212, 175, 55, 0.24);
}

/* 登录按钮（品牌金） */
.login-btn {
    width: 100%;
    height: 48px;
    margin-top: 12px;
    background: linear-gradient(135deg, #E2C362 0%, var(--lg-gold) 55%, #B8933A 100%);
    color: var(--lg-ink);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
    transition: all 0.25s ease;
}

.login-btn:hover {
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

/* 底部版权（右侧浅底） */
.login-footer {
    margin-top: 26px;
    text-align: center;
    color: var(--lg-muted);
    font-size: 12px;
}

.login-footer p {
    margin: 0;
}

.login-footer a {
    color: var(--lg-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.login-footer a:hover {
    color: var(--lg-gold-deep);
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
    .login-shell {
        flex-direction: column;
    }

    .login-brand {
        width: 100%;
        min-height: auto;
        padding: 34px 24px 30px;
    }

    .brand-headline {
        margin-top: 20px;
        font-size: 20px;
    }

    .brand-points {
        display: none;
    }

    .brand-foot {
        position: static;
        margin-top: 18px;
        left: auto;
        right: auto;
    }

    .login-panel {
        border-left: none;
        min-height: auto;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .login-tabs .login-tab {
        padding: 10px 10px;
        font-size: 13px;
    }

    .login-logo img {
        max-height: 40px;
    }
}

/* 自动填充样式 */
input:-webkit-autofill,
.layui-input:-webkit-autofill {
    -webkit-text-fill-color: var(--lg-ink) !important;
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    transition: background-color 9999s ease-in-out 0s;
}
