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

:root {
    /* 深蓝 + 金色 配色 */
    --bg-deep: #0a1628;
    --bg: #0f2137;
    --card: #1a2d47;
    --card-light: #243b5c;
    --gold: #c9a96e;
    --gold-light: #e6c88a;
    --gold-deep: #a68a52;
    --text: #e8ecf2;
    --text-muted: #7a8ba6;
    --border: rgba(201, 169, 110, 0.22);
}

html, body {
    height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    overflow: hidden;
}

body {
    background: var(--bg-deep);
    display: flex;
    position: relative;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(26, 45, 71, 0.7) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(15, 33, 55, 0.6) 0%, transparent 50%), linear-gradient(135deg, #0a1628 0%, #0f2137 50%, #0a1a2a 100%);
    z-index: 0;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(201, 169, 110, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 169, 110, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.floating-shield {
    position: absolute;
    opacity: 0.05;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* 左侧品牌区 */
.brand-panel {
    flex: 1.2;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 70px;
    color: var(--text);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

    .logo-icon svg {
        width: 32px;
        height: 32px;
        fill: var(--bg-deep);
    }

.brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 2px;
}

.brand-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-slogan {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 50px;
}

/* 仁义礼智信 */
.wuchang {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.wuchang-item {
    width: 72px;
    height: 96px;
    background: linear-gradient(180deg, rgba(201, 169, 110, 0.14) 0%, rgba(201, 169, 110, 0.04) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
}

    .wuchang-item:hover {
        transform: translateY(-6px);
        border-color: var(--gold);
        box-shadow: 0 8px 30px rgba(201, 169, 110, 0.2);
    }

    .wuchang-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
        opacity: 0;
        transition: opacity 0.4s;
    }

    .wuchang-item:hover::before {
        opacity: 1;
    }

.wuchang-char {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-light);
    font-family: "STKaiti", "KaiTi", serif;
    line-height: 1;
}

.wuchang-pinyin {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 1px;
}

.wuchang-meaning {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.brand-footer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 右侧登录区 */
.login-panel {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(26, 45, 71, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 50px 45px;
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-deep));
    }

.login-title {
    text-align: center;
    margin-bottom: 8px;
}

    .login-title h2 {
        font-size: 26px;
        color: var(--text);
        font-weight: 600;
        letter-spacing: 2px;
    }

    .login-title p {
        font-size: 13px;
        color: var(--text-muted);
        margin-top: 6px;
        letter-spacing: 1px;
    }

    .login-title .divider {
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
        margin: 20px auto 30px;
    }

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--gold-light);
    z-index: 1;
}

.form-input {
    width: 100%;
    height: 50px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.18);
    border-radius: 10px;
    padding: 0 16px 0 48px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-input::placeholder {
        color: #4a5a6a;
    }

    .form-input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
    }

.captcha-row {
    display: flex;
    gap: 12px;
}

    .captcha-row .form-input {
        flex: 1;
    }

.captcha-img {
    width: 110px;
    height: 50px;
    background: linear-gradient(135deg, #1a2d47, #243b5c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(201, 169, 110, 0.18);
    user-select: none;
    transition: opacity 0.2s;
}

    .captcha-img:hover {
        opacity: 0.85;
    }

    .captcha-img span {
        font-size: 22px;
        font-weight: 700;
        color: var(--gold-light);
        letter-spacing: 4px;
        font-style: italic;
        font-family: "Georgia", serif;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

    .checkbox-wrap input {
        display: none;
    }

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-wrap input:checked + .checkbox-custom {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-custom::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid var(--text);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
}

.checkbox-wrap input:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.forgot-link {
    color: var(--gold-light);
    text-decoration: none;
    transition: opacity 0.2s;
}

    .forgot-link:hover {
        opacity: 0.7;
    }

.login-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
    font-family: inherit;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
    }

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

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
}

    .login-footer .company-name {
        color: var(--text);
        margin-bottom: 6px;
        letter-spacing: 1px;
    }

        .login-footer .company-name a {
            color: var(--text);
        }

@media (max-width: 900px) {
    .brand-panel {
        display: none;
    }

    .login-panel {
        flex: 1;
    }
}
