body.auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left,
            rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.18),
            transparent 45%),
        var(--color-primary-50, #f2f6ff);
    color: var(--color-primary-900, #132a63);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.auth-main {
    width: 100%;
    padding: 3rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-logo:hover,
.auth-logo:focus {
    text-decoration: none;
}

.auth-logo img {
    height: 100px;
    width: auto;
}

.auth-card {
    background: #ffffff;
    border: none;
    border-radius: 1.5rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 20px 45px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.15);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.16);
    pointer-events: none;
}

.auth-card-header {
    margin-bottom: 1.5rem;
}

.auth-title {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary-800, #193a8d);
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--color-primary-900, #132a63);
}

.auth-form .form-control {
    border-radius: 0.75rem;
    border-color: rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.2);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control:focus {
    border-color: var(--color-primary-600, #285cda);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.2);
}

.auth-form .form-check-input {
    cursor: pointer;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--color-primary-500, #3d75f6), var(--color-primary-700, #1f48b3));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .btn-primary:hover,
.auth-form .btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.36);
}

.auth-form .btn-link {
    font-weight: 600;
    color: var(--color-primary-600, #285cda);
}

.auth-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-secondary-actions {
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.75);
}

.auth-secondary-actions a {
    font-weight: 600;
    color: var(--color-primary-600, #285cda);
    text-decoration: none;
}

.auth-secondary-actions a:hover,
.auth-secondary-actions a:focus {
    color: var(--color-primary-700, #1f48b3);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-logo img {
        height: 44px;
    }
}

/* Auth Footer */
.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-footer p {
    margin: 0;
    color: rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.7);
}
