:root {
    --fl-indigo: #4f46e5;
    --fl-purple: #7c3aed;
    --fl-royal: #1e3a8a;
    --fl-violet: #6d28d9;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.auth-shell {
    min-height: 100vh;
}

.auth-brand-panel {
    background: linear-gradient(135deg, var(--fl-royal) 0%, #312e81 45%, var(--fl-violet) 100%);
    color: #fff;
    overflow: hidden;
    padding: 1.5rem 0;
    position: relative;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    border-radius: 50%;
    content: "";
    filter: blur(60px);
    opacity: 0.35;
    position: absolute;
}

.auth-brand-panel::before {
    background: #818cf8;
    height: 220px;
    right: -60px;
    top: -40px;
    width: 220px;
}

.auth-brand-panel::after {
    background: #c084fc;
    bottom: -80px;
    height: 260px;
    left: -40px;
    width: 260px;
}

.auth-brand-inner {
    max-width: 26rem;
    position: relative;
    width: 100%;
    z-index: 1;
}

.brand-mark {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 800;
    gap: 0.6rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.brand-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.625rem;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.1rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.auth-subtitle {
    color: #e0e7ff;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-list li {
    align-items: flex-start;
    color: #c7d2fe;
    display: flex;
    font-size: 0.95rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.benefit-list .bi {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    flex-shrink: 0;
    font-size: 1rem;
    padding: 0.45rem;
}

.auth-form-panel {
    background: #fff;
    padding: 1.5rem 0 2rem;
}

.auth-form-wrap {
    max-width: 100%;
    width: 100%;
}

.auth-form-title {
    color: #0f172a;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.auth-form-lead {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.form-control-auth {
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-auth:focus {
    border-color: var(--fl-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label-auth {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--fl-indigo), var(--fl-purple));
    border: none;
    border-radius: 0.625rem;
    color: #fff;
    font-weight: 700;
    padding: 0.7rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.auth-toggle {
    border-top: 1px solid #f1f5f9;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    text-align: center;
}

.auth-toggle-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.auth-footer-link {
    color: var(--fl-indigo);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: var(--fl-purple);
}

@media (min-width: 768px) {
    .auth-brand-panel {
        padding: 2rem 0;
    }

    .auth-form-panel {
        padding: 2rem 0 2.5rem;
    }

    .brand-mark {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .auth-form-lead {
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .auth-shell {
        height: 100vh;
    }

    .auth-brand-panel,
    .auth-form-panel {
        height: 100%;
        padding: 3rem 0;
    }
}
