:root {
    --auth-primary: #5a67d8;
    --auth-primary-dark: #4c51bf;
    --auth-accent: #7f9cf5;
    --auth-bg: #eef2ff;
    --auth-card: #ffffff;
    --auth-text: #1a202c;
    --auth-muted: #718096;
}

body.auth-body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #dfe3ff 0%, #eef2ff 45%, #fafbff 100%);
    padding: clamp(20px, 4vw, 60px);
}

.auth-wrapper {
    width: min(1100px, 100%);
    background: var(--auth-card);
    border-radius: 28px;
    box-shadow: 0 40px 120px rgba(76, 81, 191, 0.18);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.auth-illustration {
    background: linear-gradient(135deg, #6b46c1 0%, #5a67d8 35%, #3182ce 100%);
    color: #fff;
    padding: clamp(30px, 5vw, 50px);
    position: relative;
    overflow: hidden;
}

.auth-illustration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(255,255,255,0.25), transparent 40%);
    opacity: 0.65;
}

.auth-illustration-content {
    position: relative;
    z-index: 2;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-illustration h1 {
    font-size: clamp(28px, 3vw, 38px);
    margin: 0;
    line-height: 1.2;
}

.auth-illustration p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 18px 0 25px;
}

.auth-highlights {
    display: grid;
    gap: 12px;
}

.auth-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.auth-card {
    padding: clamp(30px, 5vw, 50px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-card h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--auth-text);
}

.auth-subtitle {
    color: var(--auth-muted);
    font-size: 15px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field label {
    font-weight: 600;
    font-size: 14px;
    color: var(--auth-text);
    margin-bottom: 6px;
}

.auth-input,
.captcha-input,
.auth-field select,
.auth-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 15px;
    background: #fdfbff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus,
.captcha-input:focus,
.auth-field select:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.15);
}

.auth-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #5a67d8 0%, #805ad5 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(90, 103, 216, 0.25);
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-meta a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(229, 62, 62, 0.4);
    background: rgba(254, 215, 215, 0.6);
    color: #9b2c2c;
    font-size: 14px;
}

.captcha-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--auth-text);
    display: block;
    margin-bottom: 6px;
}

.captcha-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-image {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: 54px;
    width: 150px;
    object-fit: cover;
    background: #f7fafc;
}

.captcha-refresh {
    border: none;
    background: rgba(90, 103, 216, 0.12);
    color: var(--auth-primary);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.captcha-refresh:hover {
    background: rgba(90, 103, 216, 0.2);
}

.captcha-help {
    font-size: 12px;
    color: var(--auth-muted);
    margin-top: 6px;
}

.auth-info-box {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-disabled {
    padding: 14px;
    border-radius: 12px;
    background: rgba(250, 173, 20, 0.12);
    border: 1px solid rgba(250, 173, 20, 0.4);
    color: #975a16;
    font-weight: 600;
    margin-bottom: 15px;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 10px;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
}

.auth-feature-list li i {
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 980px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    .auth-illustration {
        text-align: center;
    }
    .auth-feature-list {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .auth-wrapper {
        border-radius: 20px;
    }
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-image {
        width: 100%;
    }
}

