:root {
    --htx-ink: #0c1f24;
    --htx-deep: #12353d;
    --htx-teal: #1a6b6a;
    --htx-mint: #3db8a8;
    --htx-coral: #e25b45;
    --htx-gold: #d4a24c;
    --htx-cream: #f7f3ec;
    --htx-card: rgba(255, 255, 255, 0.94);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body.login-body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    color: var(--htx-ink);
    background: var(--htx-ink);
    overflow-x: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    isolation: isolate;
}

.login-hero {
    position: relative;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(61, 184, 168, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(226, 91, 69, 0.28), transparent 50%),
        linear-gradient(160deg, #0a1c21 0%, #12353d 48%, #0f2a30 100%);
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 20%, transparent 75%);
    pointer-events: none;
    animation: gridDrift 28s linear infinite;
}

.login-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -80px;
    bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 162, 76, 0.22), transparent 68%);
    pointer-events: none;
    animation: orbFloat 9s ease-in-out infinite;
}

.login-hero-top,
.login-hero-body,
.login-hero-foot {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: 'Songti SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(145deg, var(--htx-coral), #c94432);
    box-shadow: 0 10px 28px rgba(226, 91, 69, 0.35);
}

.login-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.login-brand-name {
    font-family: 'Songti SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.login-brand-tag {
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
}

.login-hero-body {
    max-width: 440px;
    padding: 40px 0;
}

.login-hero-kicker {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    animation: fadeUp 0.7s ease both;
}

.login-hero-title {
    margin: 0;
    font-family: 'Songti SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: clamp(36px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    animation: fadeUp 0.8s 0.08s ease both;
}

.login-hero-title span {
    color: var(--htx-mint);
}

.login-hero-desc {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 36em;
    animation: fadeUp 0.8s 0.16s ease both;
}

.login-hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    animation: fadeUp 0.8s 0.24s ease both;
}

.login-hero-stats strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.login-hero-stats span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
}

.login-hero-foot {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
}

.login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background:
        linear-gradient(180deg, #fbf8f3 0%, #f3eee6 100%);
}

.login-panel::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    top: -60px;
    right: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 184, 168, 0.14), transparent 70%);
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 40px 36px 32px;
    border-radius: 20px;
    background: var(--htx-card);
    border: 1px solid rgba(18, 53, 61, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 60px rgba(12, 31, 36, 0.1);
    animation: cardIn 0.7s 0.12s ease both;
}

.login-card-head {
    margin-bottom: 28px;
}

.login-card-head h2 {
    margin: 0;
    font-family: 'Songti SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--htx-ink);
    letter-spacing: 0.04em;
}

.login-card-head p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b787c;
    line-height: 1.5;
}

.login-page .el-input__inner {
    height: 46px;
    line-height: 46px;
    border-radius: 12px;
    border-color: #dfe6e7;
    background: #fafbfb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-page .el-input__inner:focus {
    border-color: var(--htx-teal);
    box-shadow: 0 0 0 3px rgba(26, 107, 106, 0.12);
}

.login-page .el-form-item {
    margin-bottom: 18px;
}

.login-btn {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, var(--htx-coral) 0%, #c94432 100%) !important;
    box-shadow: 0 12px 28px rgba(226, 91, 69, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover,
.login-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(226, 91, 69, 0.34);
}

.login-btn.is-loading,
.login-btn.is-disabled,
.login-btn:disabled {
    opacity: 0.72;
    transform: none !important;
    box-shadow: 0 8px 18px rgba(226, 91, 69, 0.18) !important;
}

.login-card-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #8a9497;
}

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

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gridDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(48px, 48px, 0); }
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@media (max-width: 960px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: 42vh;
        padding: 36px 28px;
    }

    .login-hero-stats {
        gap: 18px;
    }

    .login-hero-foot {
        display: none;
    }

    .login-panel {
        padding: 28px 20px 40px;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .login-hero-title {
        font-size: 32px;
    }

    .login-hero-stats {
        display: none;
    }

    .login-card {
        padding: 28px 22px 24px;
    }
}
