/* 登录/注册门户页 - 深色双栏布局 */
.auth-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 24px;
    background: radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, .12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, .1) 0%, transparent 45%),
                linear-gradient(145deg, #0b1220 0%, #111827 40%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.auth-portal::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.auth-portal-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 920px;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}

.auth-portal-left {
    flex: 1;
    padding: 40px 36px;
    background: linear-gradient(160deg, rgba(30, 41, 59, .95) 0%, rgba(15, 23, 42, .98) 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-direction: column;
}

.auth-portal-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 28px;
    letter-spacing: .5px;
}

.auth-portal-welcome {
    font-size: 1.05rem;
    color: #f1f5f9;
    margin-bottom: 14px;
    font-weight: 500;
}

.auth-portal-desc {
    font-size: .88rem;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 28px;
}

.auth-portal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.auth-portal-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: .88rem;
    margin-bottom: 16px;
}

.auth-portal-features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #64748b;
}

.auth-portal-left-foot {
    margin-top: 24px;
    font-size: .85rem;
    color: #94a3b8;
}

.auth-portal-left-foot a {
    color: #60a5fa;
    text-decoration: none;
}

.auth-portal-left-foot a:hover {
    text-decoration: underline;
}

.auth-portal-right {
    flex: 1;
    padding: 40px 36px 32px;
    background: rgba(2, 6, 23, .75);
    display: flex;
    flex-direction: column;
}

.auth-portal-right h2 {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-portal-right .auth-portal-sub {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 28px;
}

.auth-portal-sync {
    font-size: .75rem;
    color: #475569;
    text-align: right;
    margin-bottom: 8px;
}

.auth-portal-msg {
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.auth-portal-msg.show { display: block; }
.auth-portal-msg.error { background: rgba(239, 68, 68, .15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .3); }
.auth-portal-msg.success { background: rgba(16, 185, 129, .15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, .3); }

.auth-portal-field {
    margin-bottom: 18px;
}

.auth-portal-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, .8);
    border: 1px solid rgba(71, 85, 105, .5);
    border-radius: 8px;
    padding: 0 14px;
    transition: border-color .2s;
}

.auth-portal-input-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.auth-portal-input-wrap svg {
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.auth-portal-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: .95rem;
    padding: 12px 10px;
}

.auth-portal-input-wrap input::placeholder {
    color: #475569;
}

.auth-portal-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: .85rem;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.auth-portal-remember input {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.auth-portal-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    letter-spacing: 2px;
}

.auth-portal-submit:hover { opacity: .92; }
.auth-portal-submit:active { transform: scale(.99); }
.auth-portal-submit:disabled { opacity: .6; cursor: not-allowed; }

.auth-portal-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: auto;
    padding-top: 28px;
    flex-wrap: wrap;
}

.auth-portal-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}

.auth-portal-links a:hover { color: #93c5fd; }

.auth-portal-links svg {
    width: 14px;
    height: 14px;
}

.auth-portal-footer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    text-align: center;
    font-size: .78rem;
    color: #475569;
    line-height: 1.8;
}

.auth-portal-hint {
    margin-top: 16px;
    text-align: center;
    font-size: .78rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .auth-portal-card {
        flex-direction: column;
        min-height: auto;
    }
    .auth-portal-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        padding: 28px 24px;
    }
    .auth-portal-right {
        padding: 28px 24px;
    }
}
