/* ============================================================
   登录页专用样式（ITERATION-18 从 style.css 拆分而来）
   ⚠️ 本文件属于 UI_SPEC 第 11 节「排除范围」：登录页永不整改。
   内容与拆分前逐字一致，仅更换所在文件，登录页视觉零变化。
   仅由 base.html 在 /login 路径下条件加载，不污染全站其他页面。
   ============================================================ */
/* ==================== 全局 ==================== */
:root {
    --primary: #4f6ef2;
    --primary-dark: #3a56d4;
    --primary-light: #eef1ff;
    --accent: #f0c040;
    --accent-light: #fef7e0;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f0f2f5;
    --border-color: #e0e0e0;
}

/* ==================== 登录页铺满修正 ==================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body.login-page {
    background: #fff !important;
    padding-top: 0 !important;
}
body.login-page .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
}
body.login-page .content-topbar {
    display: none !important;
}
body.login-page .content-body {
    padding: 0 !important;
}


/* ==================== LOGO ==================== */
.logo-svg {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

/* ==================== 登录页面 ==================== */
.login-page {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ----- 左侧 60%：** 知行 ** 毛笔大字 ----- */
.login-left {
    flex: 0 0 60%;
    width: 60%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
    overflow: hidden;
    padding: 40px;
}

/* 金色粒子背景 */
.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(2px 2px at 15% 25%, rgba(240,192,64,0.2), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(240,192,64,0.15), transparent),
        radial-gradient(2px 2px at 55% 20%, rgba(240,192,64,0.18), transparent),
        radial-gradient(1px 1px at 75% 55%, rgba(240,192,64,0.12), transparent),
        radial-gradient(2px 2px at 10% 75%, rgba(240,192,64,0.15), transparent),
        radial-gradient(1px 1px at 45% 10%, rgba(240,192,64,0.1), transparent),
        radial-gradient(2px 2px at 25% 85%, rgba(240,192,64,0.16), transparent),
        radial-gradient(1px 1px at 65% 35%, rgba(240,192,64,0.12), transparent),
        radial-gradient(2px 2px at 85% 75%, rgba(240,192,64,0.14), transparent);
    animation: starTwinkle 4s ease-in-out infinite alternate;
}
@keyframes starTwinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 装饰光环 */
.login-left .deco-ring {
    position: absolute;
    border: 1px solid rgba(240,192,64,0.12);
    border-radius: 50%;
    animation: ringPulse 6s ease-in-out infinite;
}
.login-left .deco-ring:nth-child(1) {
    width: 500px; height: 500px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}
.login-left .deco-ring:nth-child(2) {
    width: 350px; height: 350px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.5s;
    border-color: rgba(240,192,64,0.08);
}
.login-left .deco-ring:nth-child(3) {
    width: 200px; height: 200px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 3s;
    border-color: rgba(240,192,64,0.15);
}
@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; }
}

/* 知行大字 */
.login-left .calligraphy {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-left .calligraphy .char {
    display: block;
    font-size: 160px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 30px;
    text-shadow: 0 4px 40px rgba(240,192,64,0.3), 0 0 60px rgba(240,192,64,0.1);
    line-height: 1.3;
    font-family: "SimSun", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
    transition: text-shadow 0.5s;
}

/* 印章效果 - 已改为图片，见 seal-img 类 */
.login-left .seal-img {
    position: absolute;
    bottom: 110px;
    right: 16%;
    width: 80px;
    height: 80px;
    z-index: 2;
    transform: rotate(-6deg);
    opacity: 0.95;
}

/* 底部水印 */
.login-left .left-footer {
    position: absolute;
    bottom: 40px;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    letter-spacing: 4px;
}

/* ----- 右侧 40%：登录表单 ----- */
.login-right {
    flex: 0 0 40%;
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
}
.login-right .login-box-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}
.login-right .login-box {
    width: 100%;
    max-width: 340px;
}
.login-right .login-footer {
    padding: 14px 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eef0f2;
    background: #fff;
    flex-shrink: 0;
}
.login-right .login-footer a {
    color: #999;
    text-decoration: none;
}
.login-right .login-footer a:hover {
    color: #666;
}
.login-right .login-footer .sep {
    margin: 0 10px;
    color: #ddd;
}
.login-right .login-footer .police-badge {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}
.login-right .login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-right .login-header .brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.login-right .login-header .brand-row .logo-svg {
    width: 36px;
    height: 36px;
}
.login-right .login-header .sys-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
}
.login-right .form-label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
}
.login-right .form-control {
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s;
}
.login-right .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 110, 242, 0.1);
}
.login-right .btn-login {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.login-right .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 110, 242, 0.35);
}
.login-right .btn-login:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }
    .login-left {
        flex: 0 0 35%;
        height: 35vh;
        min-height: 35vh;
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    .login-left .calligraphy .char {
        font-size: 80px;
        letter-spacing: 16px;
    }
    .login-left .seal-img {
        width: 60px;
        height: 60px;
        bottom: 60px;
        right: 10%;
    }
    .login-left .left-footer {
        bottom: 12px;
        font-size: 11px;
    }
    .login-right {
        flex: 0 0 65%;
        height: 65vh;
        min-height: 65vh;
        width: 100%;
        max-width: 100%;
        padding: 24px 20px;
    }
    .login-left .deco-ring { display: none; }
}
