:root{
    --primary:#4f46e5;
    --primary-dark:#4338ca;
    --secondary:#7c3aed;
    --text:#111827;
    --muted:#6b7280;
    --line:#e5e7eb;
    --card:#ffffff;
    --success:#065f46;
    --success-bg:#ecfdf5;
    --success-line:#bbf7d0;
    --error:#991b1b;
    --error-bg:#fef2f2;
    --error-line:#fecaca;
    --shadow:0 20px 50px rgba(15,23,42,.08);
}

*{box-sizing:border-box}
body{
    margin:0;
    font-family:Arial,"Microsoft YaHei",sans-serif;
    color:var(--text);
}
a{text-decoration:none;color:inherit}

.auth-page{
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(99,102,241,.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(124,58,237,.10), transparent 22%),
        linear-gradient(135deg,#f8fbff 0%,#eef2ff 50%,#f8fafc 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.auth-shell{
    width:100%;
    max-width:1180px;
    min-height:720px;
    background:rgba(255,255,255,.92);
    border:1px solid rgba(255,255,255,.85);
    border-radius:28px;
    box-shadow:var(--shadow);
    overflow:hidden;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    backdrop-filter:blur(12px);
}

.auth-left{
    position:relative;
    padding:54px 44px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 26%),
        linear-gradient(135deg,#4f46e5 0%,#6366f1 42%,#8b5cf6 100%);
    color:#fff;
}

.auth-left::after{
    content:'';
    position:absolute;
    right:-80px;
    bottom:-80px;
    width:240px;
    height:240px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
}

.brand-row{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:34px;
    position:relative;
    z-index:1;
}

.brand-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.22);
    font-size:22px;
    font-weight:800;
    box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.brand-name{
    font-size:24px;
    font-weight:800;
    letter-spacing:.3px;
}

.left-title{
    position:relative;
    z-index:1;
    font-size:44px;
    line-height:1.15;
    font-weight:900;
    margin:0 0 18px;
}

.left-desc{
    position:relative;
    z-index:1;
    font-size:16px;
    line-height:1.95;
    opacity:.95;
    max-width:520px;
    margin-bottom:30px;
}

.feature-list{
    position:relative;
    z-index:1;
    display:grid;
    gap:14px;
    max-width:540px;
}

.feature-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.16);
}

.feature-icon{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.18);
    font-weight:800;
    box-shadow:0 4px 10px rgba(0,0,0,.06);
}

.feature-text h4{
    margin:0 0 4px;
    font-size:15px;
    font-weight:800;
}

.feature-text p{
    margin:0;
    font-size:13px;
    line-height:1.7;
    opacity:.92;
}

.auth-right{
    padding:54px 42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:rgba(255,255,255,.82);
}

.panel-top{
    margin-bottom:26px;
}

.panel-kicker{
    display:inline-block;
    padding:8px 14px;
    border-radius:999px;
    background:#eef2ff;
    color:var(--primary);
    font-size:13px;
    font-weight:700;
    margin-bottom:14px;
}

.panel-title{
    margin:0 0 10px;
    font-size:34px;
    font-weight:900;
    color:#111827;
}

.panel-desc{
    color:var(--muted);
    font-size:15px;
    line-height:1.85;
    margin:0;
}

.alert{
    padding:13px 14px;
    border-radius:14px;
    margin-bottom:16px;
    font-size:14px;
    line-height:1.6;
}

.alert-error{
    background:var(--error-bg);
    color:var(--error);
    border:1px solid var(--error-line);
}

.alert-success{
    background:var(--success-bg);
    color:var(--success);
    border:1px solid var(--success-line);
}

.auth-form{
    margin-top:8px;
}

.form-group{
    margin-bottom:16px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:700;
    color:#374151;
}

.form-group input{
    width:100%;
    padding:14px 15px;
    border:1px solid #dcdfe6;
    border-radius:16px;
    outline:none;
    font-size:14px;
    background:#fff;
    transition:.2s ease;
}

.form-group input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(79,70,229,.10);
}

.btn{
    width:100%;
    padding:15px 18px;
    border:none;
    border-radius:16px;
    color:#fff;
    font-size:15px;
    font-weight:800;
    letter-spacing:.3px;
    cursor:pointer;
    transition:all .25s ease;
    position:relative;
    overflow:hidden;
}

.btn::before{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:80%;
    height:100%;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transform:skewX(-20deg);
    transition:left .6s ease;
}

.btn:hover::before{
    left:140%;
}

.btn:hover{
    transform:translateY(-3px);
}

.btn:active{
    transform:translateY(-1px) scale(.99);
}

.btn-login{
    background:linear-gradient(135deg,#4f46e5 0%, #6366f1 45%, #8b5cf6 100%);
    box-shadow:
        0 14px 28px rgba(79,70,229,.22),
        0 6px 12px rgba(124,58,237,.12);
}

.btn-login:hover{
    box-shadow:
        0 20px 36px rgba(79,70,229,.28),
        0 10px 18px rgba(124,58,237,.18);
}

.btn-register{
    background:linear-gradient(135deg,#7c3aed 0%, #8b5cf6 45%, #a855f7 100%);
    box-shadow:
        0 14px 28px rgba(124,58,237,.22),
        0 6px 12px rgba(168,85,247,.12);
}

.btn-register:hover{
    box-shadow:
        0 20px 36px rgba(124,58,237,.28),
        0 10px 18px rgba(168,85,247,.18);
}

.auth-links{
    margin-top:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    font-size:14px;
    color:var(--muted);
}

.auth-links a{
    color:var(--primary);
    font-weight:700;
}

.bottom-link{
    margin-top:20px;
    text-align:center;
    font-size:13px;
    color:#9ca3af;
}

.bottom-link a{
    color:#6b7280;
    text-decoration:none;
}

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

    .auth-left,.auth-right{
        padding:36px 24px;
    }

    .left-title{
        font-size:34px;
    }
}

@media(max-width:768px){
    .auth-page{
        padding:14px;
        align-items:flex-start;
    }

    .auth-shell{
        min-height:auto;
        border-radius:22px;
    }

    .auth-left,.auth-right{
        padding:24px 18px;
    }

    .brand-row{
        margin-bottom:22px;
    }

    .brand-name{
        font-size:20px;
    }

    .brand-icon{
        width:42px;
        height:42px;
        font-size:18px;
    }

    .left-title{
        font-size:30px;
        line-height:1.2;
        margin-bottom:14px;
    }

    .left-desc{
        font-size:14px;
        line-height:1.8;
        margin-bottom:20px;
    }

    .feature-list{
        gap:10px;
    }

    .feature-item{
        padding:12px 12px;
        border-radius:14px;
    }

    .feature-text h4{
        font-size:14px;
    }

    .feature-text p{
        font-size:12px;
    }

    .panel-title{
        font-size:28px;
        line-height:1.2;
    }

    .panel-desc{
        font-size:14px;
        line-height:1.8;
    }

    .form-group input{
        padding:13px 14px;
        border-radius:14px;
    }

    .btn{
        padding:14px 16px;
        font-size:14px;
        border-radius:14px;
    }

    .auth-links{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .bottom-link{
        margin-top:16px;
    }
}
