/**
 * ���þ���¼ / ע��ҳ �� Ʒ�����������������������ҷ����׿�Ƭ
 */
:root {
    --zwj-ink: #13261f;
    --zwj-forest: #1b3d32;
    --zwj-leaf: #2f7a5f;
    --zwj-mint: #4fad8f;
    --zwj-amber: #c48a1a;
    --zwj-sand: #f2efe6;
    --zwj-paper: #faf8f3;
    --zwj-line: #e2ddd0;
    --zwj-muted: #6b736e;
    --zwj-font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

html, body.zwj-auth {
    height: 100%;
    margin: 0;
    font-family: var(--zwj-font);
    background: var(--zwj-forest);
}

body.zwj-auth {
    min-height: 100vh;
    overflow-x: hidden;
}

.zwj-auth-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 100vh;
}

.zwj-auth-hero {
    position: relative;
    padding: clamp(32px, 6vw, 72px);
    color: #f4f7f5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79, 173, 143, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(196, 138, 26, 0.18), transparent 50%),
    linear-gradient(155deg, #0f241d 0%, #1b3d32 48%, #245544 100%);
    overflow: hidden;
}

.zwj-auth-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: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
    pointer-events: none;
    animation: zwj-grid-drift 28s linear infinite;
}

.zwj-auth-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -80px;
    top: -60px;
    border-radius: 50%;
    border: 1px solid rgba(79, 173, 143, 0.25);
    box-shadow: 0 0 0 48px rgba(79, 173, 143, 0.06);
    animation: zwj-ring-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes zwj-grid-drift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(48px);
    }
}

@keyframes zwj-ring-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

.zwj-brand {
    position: relative;
    z-index: 1;
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    margin: 0 0 18px;
    max-width: none;
    white-space: nowrap;
}

.zwj-brand span {
    display: block;
    font-size: 0.28em;
    letter-spacing: 0.42em;
    font-weight: 500;
    opacity: 0.72;
    margin-top: 14px;
}

.zwj-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 28em;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
    color: rgba(244, 247, 245, 0.86);
    margin: 0;
}

.zwj-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: linear-gradient(180deg, rgba(250, 248, 243, 0.97), #f2efe6),
    var(--zwj-sand);
}

.zwj-auth-card {
    width: 100%;
    max-width: 400px;
    animation: zwj-card-in 0.55s ease-out both;
}

@keyframes zwj-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zwj-auth-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: var(--zwj-ink);
    letter-spacing: 0.04em;
}

.zwj-auth-card .lead {
    margin: 0 0 28px;
    color: var(--zwj-muted);
    font-size: 14px;
    line-height: 1.6;
}

.zwj-auth-card .form-control {
    height: 46px;
    margin-top: 12px;
    border-radius: 10px;
    border: 1px solid var(--zwj-line);
    background: #fff;
    box-shadow: none;
    padding-left: 14px;
    color: var(--zwj-ink);
}

.zwj-auth-card .form-control:focus {
    border-color: var(--zwj-mint);
    box-shadow: 0 0 0 3px rgba(79, 173, 143, 0.2);
}

.zwj-auth-card .btn-auth {
    margin-top: 18px;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f7a5f, #245544);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.zwj-auth-card .btn-auth:hover,
.zwj-auth-card .btn-auth:focus {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(47, 122, 95, 0.28);
    transform: translateY(-1px);
}

.zwj-auth-meta {
    margin-top: 18px;
    font-size: 13px;
    color: var(--zwj-muted);
}

.zwj-auth-meta a {
    color: var(--zwj-leaf);
    font-weight: 600;
}

.zwj-auth-meta a:hover {
    color: #245544;
    text-decoration: underline;
}

.zwj-auth-footer {
    margin-top: 32px;
    font-size: 12px;
    color: #9aa39d;
}

.zwj-auth-card .checkbox-custom {
    margin-top: 14px;
    color: var(--zwj-muted);
}

.zwj-auth-card .imgcode {
    border-radius: 8px;
    border: 1px solid var(--zwj-line);
    background: #fff;
    height: 46px;
    object-fit: cover;
}

.zwj-auth-card label.error {
    color: #c45c4a;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .zwj-auth-shell {
        grid-template-columns: 1fr;
    }

    .zwj-auth-hero {
        min-height: 34vh;
        justify-content: flex-end;
        padding: 28px 24px 36px;
    }

    .zwj-brand {
        font-size: 22px;
        max-width: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .zwj-auth-panel {
        padding: 28px 20px 40px;
    }
}
