.hero-background.auth-hero {
    background-image: url('https://images.unsplash.com/photo-1524813686514-a57563d77965?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
}

.hero-background.auth-hero.auth-hero--register {
    background-image: url('https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.hero-overlay {
    position: relative;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 40px 0;
}

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

.login-form-container,
.register-form-container {
    padding: 2rem 0;
}

.login-card,
.register-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2; /* Keep form controls and links clickable above any hero layers. */
}

.login-card .card-header,
.register-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
}

.forgot-password-link {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    gap: 0;
    position: relative;
    z-index: 3;
}

.forgot-password-link i {
    font-size: 13px;
}

.feature-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 18px;
    box-shadow: var(--shadow);
    height: 100%;
}

.feature-icon {
    color: var(--brand);
}

.auth-features-slider {
    position: relative;
    --featured-gap: 1rem;
    --featured-card-width: min(88vw, 360px);
    --slider-arrow-top: 40%;
}

.auth-features-slider .featured-slider__controls {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--slider-arrow-top);
    transform: translateY(-50%);
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 5;
    pointer-events: none;
}

.auth-features-slider.is-scrollable .featured-slider__controls {
    display: flex;
}

.auth-features-slider .featured-slider__arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 106, 0, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #fff7f1 100%);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    pointer-events: auto;
    transition: all 0.2s ease;
}

.auth-features-slider .featured-slider__arrow:hover:not(:disabled) {
    background: linear-gradient(180deg, #fff8f2 0%, #ffefe2 100%);
    border-color: rgba(255, 106, 0, 0.46);
    transform: translateY(-1px);
}

.auth-features-slider .featured-slider__arrow:disabled {
    opacity: 0.32;
    box-shadow: none;
    cursor: not-allowed;
}

.auth-features-slider .featured-slider__track.row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-left: 0;
    margin-right: 0;
    padding: 2px 0 8px;
    gap: var(--featured-gap);
    scrollbar-width: none;
}

.auth-features-slider .featured-slider__track.row::-webkit-scrollbar {
    display: none;
}

.auth-features-slider .featured-slider__track.row > [class*="col-"] {
    flex: 0 0 var(--featured-card-width);
    max-width: var(--featured-card-width);
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    scroll-snap-align: start;
}

.auth-features-slider.featured-slider--no-arrows .featured-slider__controls {
    display: none !important;
}

.sign-in-btn,
.register-btn {
    height: 48px;
    font-weight: 600;
}

.pw-meter {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 12px 12px 10px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    margin: 6px 0 16px;
}

.pw-meter__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pw-meter__label {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}

.pw-meter__status {
    font-weight: 700;
    font-size: 12px;
    color: var(--muted);
}

.pw-meter__bar {
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 106, 0, 0.28);
    background: rgba(255, 106, 0, 0.08);
    overflow: hidden;
}

.pw-meter__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.65) 0%, rgba(255, 106, 0, 0.95) 100%);
    box-shadow: 0 10px 22px rgba(255, 106, 0, 0.25);
    transition: width 0.18s ease;
}

.pw-meter__rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pw-meter__rule {
    font-size: 12px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    padding: 6px 10px;
    user-select: none;
}

.pw-meter__rule.is-ok {
    color: rgba(255, 106, 0, 0.95);
    border-color: rgba(255, 106, 0, 0.32);
    background: rgba(255, 106, 0, 0.1);
}

@media (min-width: 992px) {
    .auth-features-slider.featured-slider--mobile-only .featured-slider__controls {
        display: none !important;
    }

    .auth-features-slider.featured-slider--mobile-only .featured-slider__track.row {
        flex-wrap: wrap;
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
        gap: 1.25rem;
    }

    .auth-features-slider.featured-slider--mobile-only .featured-slider__track.row > [class*="col-"] {
        flex: 0 0 calc((100% - 2.5rem) / 3);
        max-width: calc((100% - 2.5rem) / 3);
        scroll-snap-align: unset;
    }
}

@media (max-width: 992px) {
    .hero-content {
        text-align: center !important;
    }

    .hero-overlay {
        min-height: auto;
        padding: 90px 0 40px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .auth-features-slider .featured-slider__controls {
        display: none !important;
    }

    #login-hero .alert,
    #register-hero .alert {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .auth-features-slider.auth-features-slider--register {
        --featured-card-width: min(92vw, 360px);
    }
}
