/* 登录/注册 - 双栏蓝白设计 */
:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1e40af;
    --auth-left-bg: linear-gradient(160deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    --auth-card-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.2);
}

.auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* 双栏卡片容器 */
.auth-panel-card {
    width: 100%;
    max-width: 900px;
    min-height: 480px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--auth-card-shadow);
    overflow: hidden;
    display: flex;
}

.auth-panel-left {
    width: 42%;
    min-width: 320px;
    background: var(--auth-left-bg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand {
    color: #fff;
}

.auth-brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-brand-sub {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
    color: #fff;
}

.auth-feature-item strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.auth-feature-item span {
    font-size: 0.8125rem;
    opacity: 0.9;
}

.auth-panel-right {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.auth-form-sub {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 32px;
}

.auth-panel-right .form-group {
    margin-bottom: 20px;
}

.auth-panel-right .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.9375rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-input-wrap .auth-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-remember input {
    width: 16px;
    height: 16px;
}

.auth-forgot {
    font-size: 0.875rem;
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-btn-main {
    width: 100%;
    padding: 14px 20px;
    background: var(--auth-primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.auth-btn-main:hover {
    background: var(--auth-primary-dark);
    color: #fff !important;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-back:hover {
    text-decoration: underline;
}

.auth-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9375rem;
    color: #64748b;
}

.auth-tip a {
    color: var(--auth-primary);
    font-weight: 500;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* 无左侧栏时（小屏或旧单栏） */
.auth-box-single {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--auth-card-shadow);
    padding: 40px;
}

@media (max-width: 768px) {
    .auth-panel-card {
        flex-direction: column;
        max-width: 440px;
    }
    .auth-panel-left {
        width: 100%;
        min-width: 0;
        padding: 32px 28px;
    }
    .auth-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .auth-feature-item {
        flex: 1;
        min-width: 140px;
    }
    .auth-panel-right {
        padding: 36px 28px;
    }
}
