:root {
    --primary: #3058ff;
    --primary-dark: #1d3ddb;
    --text-strong: #0f172a;
    --text-muted: #64748b;
    --panel-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
    --glass: rgba(14, 22, 47, 0.7);
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: inherit;
}

.auth-body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(48, 88, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0, rgba(56, 189, 248, 0.25), transparent 45%),
    #0b1120;
    color: #fff;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(320px, 420px);
    gap: 0;
    width: min(960px, 100%);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 32px;
    box-shadow: var(--panel-shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-showcase {
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-showcase h1 {
    margin: 18px 0 12px;
    font-size: 32px;
    color: #fff;
}

.auth-showcase p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.auth-showcase ul {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.auth-showcase li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    font-size: 14px;
}

.auth-showcase li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.showcase-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card {
    background: #fff;
    color: var(--text-strong);
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f5f7ff;
    padding: 8px;
}

.brand-text strong {
    font-size: 20px;
    color: var(--text-strong);
}

.brand-text span {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-strong);
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(48, 88, 255, 0.15);
    outline: none;
}

.form-message {
    min-height: 20px;
    font-size: 13px;
    color: #ef4444;
}

.auth-tip {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(48, 73, 238, 0.4);
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-primary.loading .btn-spinner {
    display: inline-flex;
}

.btn-primary.loading .btn-text {
    opacity: 0.85;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }
    .auth-showcase {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
    }
    .auth-showcase ul {
        text-align: left;
        max-width: 380px;
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 16px;
    }
    .auth-card {
        padding: 34px 26px;
    }
}

