:root {
    --auth-primary: #4f46e5;
    --auth-primary-dark: #4338ca;
    --auth-accent: #8b5cf6;
    --auth-bg: #f5f7fb;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-success: #22c55e;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: radial-gradient(circle at 15% 15%, rgba(79, 70, 229, 0.16), transparent 55%),
                radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.18), transparent 50%),
                radial-gradient(circle at 50% 70%, rgba(59, 130, 246, 0.12), transparent 60%),
                #eef2ff;
}

.auth-wrapper {
    width: 100%;
    max-width: 1100px;
}

.auth-card {
    display: flex;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.12);
    min-height: 620px;
}

.auth-left {
    flex: 1;
    position: relative;
    padding: 3.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(139, 92, 246, 0.9));
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    overflow: hidden;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-brand img {
    height: 48px;
    width: auto;
}

.auth-brand span {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.85;
}

.auth-copy h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.auth-copy p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
    margin: 0;
}

.auth-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.auth-highlights li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-highlights i {
    font-size: 1.05rem;
    color: #bbf7d0;
}

.auth-illustration {
    width: 100%;
    height: 160px;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.35), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.35), transparent 55%),
        rgba(255, 255, 255, 0.05);
}

.auth-right {
    flex: 1;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-header p {
    margin: 0;
    color: var(--auth-muted);
}

.auth-switch span {
    display: block;
    font-size: 0.85rem;
    color: var(--auth-muted);
    margin-bottom: 0.25rem;
}

.auth-switch a {
    font-weight: 600;
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-switch a:hover {
    color: var(--auth-primary-dark);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-floating .form-control {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background-color: #f8fafc;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.auth-form .form-floating > label {
    color: var(--auth-muted);
}

.auth-form .form-floating .form-control:focus {
    border-color: var(--auth-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.16);
    color: var(--auth-text);
}

.auth-form .form-text {
    color: var(--auth-muted);
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

.form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.form-check-label {
    color: var(--auth-muted);
    font-size: 0.85rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0 1.25rem;
    color: var(--auth-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.social-login-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.social-btn {
    border-radius: 12px;
    height: 48px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.social-btn.google { background: #DB4437; }
.social-btn.google:hover { background: #c33d31; }

.social-btn.linkedin { background: #0A66C2; }
.social-btn.linkedin:hover { background: #095aa9; }

.social-btn.github { background: #24292F; }
.social-btn.github:hover { background: #15191c; }

.social-btn.facebook { background: #1877F2; }
.social-btn.facebook:hover { background: #1667d7; }

.social-btn.apple { background: #000000; }
.social-btn.apple:hover { background: #111111; }

.auth-footnote {
    font-size: 0.78rem;
    color: var(--auth-muted);
    margin: 0;
}

.auth-alert {
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: -0.5rem;
}

.auth-actions a {
    font-size: 0.85rem;
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-actions a:hover {
    color: var(--auth-primary-dark);
}

.auth-submit {
    border-radius: 14px;
    padding: 0.95rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    border: none;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.3);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-meta {
    font-size: 0.85rem;
    color: var(--auth-muted);
    text-align: right;
}

.auth-meta a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.auth-meta a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-left,
    .auth-right {
        padding: 2.75rem;
    }

    .auth-left {
        border-radius: 28px 28px 0 0;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1.5rem;
    }

    .auth-card {
        border-radius: 22px;
        min-height: auto;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .auth-left {
        padding: 2.25rem;
    }

    .auth-right {
        padding: 2.25rem;
    }

    .auth-illustration {
        height: 130px;
    }

    .social-login-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-left {
        padding: 2rem 1.75rem;
    }

    .auth-right {
        padding: 2rem 1.75rem;
    }

    .auth-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-brand span {
        font-size: 0.7rem;
    }

    .auth-highlights {
        gap: 0.6rem;
    }
}

