:root {
    --auth-bg: radial-gradient(circle at 0% 0%, rgba(71, 52, 221, 0.28), transparent 55%),
            radial-gradient(circle at 100% 0%, rgba(71, 52, 221, 0.28), transparent 50%),
            #0e121b;
    --auth-card-bg: rgba(21, 25, 37, 0.78);
    --auth-card-border: rgba(255, 255, 255, 0.06);
    --auth-muted: #c3cad8;
    --auth-heading: #f5f7ff;
    --auth-primary: #3B02A3;
    --auth-primary-hover: #5A33DD;
    --auth-primary-accent: #8C5BFF;
    --auth-primary-accent-rgb: 140, 91, 255;
    --auth-primary-rgb: 59, 2, 163;
    --auth-primary-hover-rgb: 90, 51, 221;
}

body.auth-surface {
    background: var(--auth-bg);
    color: #e7ebf7;
    min-height: 100vh;
}

body.auth-surface .main-navbar,
body.auth-surface .footer-area {
    display: none !important;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 48px 0;
}

.auth-global-lang {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 30;
}

.auth-global-lang .btn,
.auth-card__lang .btn {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--auth-muted);
    background: rgba(17, 20, 31, 0.6);
}

.auth-global-lang .btn:hover,
.auth-global-lang .btn:focus,
.auth-card__lang .btn:hover,
.auth-card__lang .btn:focus {
    border-color: rgba(var(--auth-primary-hover-rgb), 0.45);
    color: #fff;
    background: rgba(var(--auth-primary-rgb), 0.22);
    box-shadow: 0 0 0 0.2rem rgba(var(--auth-primary-rgb), 0.18);
}

.auth-wrapper::before,
.auth-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-wrapper::before {
    background: radial-gradient(circle at 20% 20%, rgba(var(--auth-primary-rgb), 0.25), transparent 60%);
    filter: blur(80px);
}

.auth-card {
    position: relative;
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-card-border);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(5, 12, 33, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: clamp(32px, 4vw, 48px);
    color: inherit;
}

.auth-card__top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.auth-card__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background:rgba(98, 84, 255, 0.15);
    color: #6254ff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
}

.auth-card h1 {
    color: var(--auth-heading);
    font-size: 2rem;
    margin: 18px 0 12px;
    font-weight: 700;
}

.auth-card p.lead {
    font-size: 1rem;
    color: var(--auth-muted);
    margin-bottom: 32px;
    /* max-width: 32rem; */
}

.auth-card .form-label {
    color: var(--auth-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.auth-card .input-group {
    background: rgba(17, 20, 31, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .input-group:focus-within {
    border-color: rgba(var(--auth-primary-hover-rgb), 0.6);
    box-shadow: 0 0 0 0.25rem rgba(var(--auth-primary-rgb), 0.12);
}

.auth-card .input-group-text {
    background: rgba(var(--auth-primary-rgb), 0.16);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: #aeb6d8;
}

.auth-card .input-group svg {
    width: 18px;
    height: 18px;
}

.auth-card .input-group .form-control {
    border: none;
    background: transparent;
    padding-left: 0.75rem;
    color: #fff;
}

.auth-card .input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-card .input-group .form-control:focus {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, rgba(var(--auth-primary-rgb), 0.94) 0%, rgba(var(--auth-primary-hover-rgb), 0.94) 100%);
    border: 1px solid rgba(var(--auth-primary-hover-rgb), 0.4);
    padding: 0.9rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, rgba(var(--auth-primary-hover-rgb), 1) 0%, rgba(var(--auth-primary-accent-rgb), 0.95) 100%);
    border-color: rgba(var(--auth-primary-accent-rgb), 0.6);
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(var(--auth-primary-accent-rgb), 0.28);
}

.auth-footer-links,
.auth-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    color: var(--auth-muted);
}

.auth-footer-links a,
.auth-card__links a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-links a:hover,
.auth-card__links a:hover {
    color: var(--auth-primary);
}

.auth-logo {
    width: 200px;
    filter: brightness(0) invert(1) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.3));
}

.language-switcher .dropdown-menu {
    background: rgba(10, 13, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.language-switcher .dropdown-item {
    color: #d7d9e6;
}

.language-switcher .dropdown-item.active,
.language-switcher .dropdown-item:active,
.language-switcher .dropdown-item:hover {
    background: rgba(var(--auth-primary-rgb), 0.18);
    color: #fff;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5bf4c3;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(91, 244, 195, 0.4);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 28px;
    }

    .auth-global-lang {
        position: static;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 16px;
        padding: 0 16px;
    }

    .auth-global-lang .btn {
        width: 100%;
    }

    .auth-card__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .auth-card__lang {
        width: 100%;
    }

    .auth-card__lang .btn {
        width: 100%;
    }

    .auth-footer-links,
    .auth-card__links {
        flex-direction: column;
        align-items: flex-start;
    }
}
