/* =========================================================
   AUTH / LOGIN PAGE STYLING (Scroll-Triggered Popup)
   ========================================================= */

html,
body.auth-page {
    background-color: #1a1d21 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Force vertical scroll */
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    /* Allow height to grow */
}

body.auth-page {
    min-height: 100vh !important;
}

/* Create a really tall scrollable area */
.auth-scroll-wrapper {
    min-height: 150vh !important;
    /* Enough space to scroll and trigger sentinel */
    position: relative !important;
}

/* Initial Full-Screen Background View */
.auth-bg-view {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh !important;
    /* Cover first viewport */
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 1 !important;
}

.auth-bg-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.auth-scroll-hint {
    position: absolute !important;
    bottom: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: white !important;
    text-align: center !important;
    z-index: 20 !important;
    /* Higher than overlays */
    transition: opacity 0.5s ease !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.hint-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 10px !important;
}

.hint-icon {
    animation: bounce 2s infinite !important;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* The Login Popup / Modal */
.auth-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -40%) scale(0.95) !important;
    width: 90% !important;
    max-width: 1000px !important;
    height: 80vh !important;
    max-height: 650px !important;
    background: white !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    /* Extremely high to beat any internal CMS UI */
    display: none;
    /* Initially hidden, JS will override */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.auth-modal.visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.auth-split-container {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
}

/* Left Form Side */
.auth-form-side {
    flex: 0 0 50% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 50px !important;
    position: relative !important;
}

.auth-close-btn {
    position: absolute !important;
    top: 25px !important;
    left: 25px !important;
    color: #8c98a4 !important;
    transition: color 0.2s !important;
}

.auth-close-btn:hover {
    color: #727cf5 !important;
}

.auth-form-wrapper {
    width: 100% !important;
    max-width: 320px !important;
}

.auth-logo {
    margin-bottom: 30px !important;
}

.auth-logo img {
    max-height: 40px !important;
}

/* WinterCMS Form Overrides */
.auth-page .login-container {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

.auth-page .form-control {
    background: #f8f9fa !important;
    border: 1px solid #edf0f5 !important;
    border-radius: 5px !important;
    padding: 15px !important;
    height: 40px;
    font-size: 14px !important;
    box-shadow: none !important;
    margin-bottom: 10px;
}

.auth-page .btn-primary {
    background: #df993f !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    width: 100% !important;
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.2) !important;
}

/* Right Image Side */
.auth-image-side {
    flex: 0 0 50% !important;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
}

.auth-image-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(114, 124, 245, 0.1) !important;
}

/* Social Buttons */
.auth-social-btns {
    margin-top: 30px !important;
}

.auth-social-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    border-radius: 5px !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    text-decoration: none !important;
}

.btn-facebook {
    background: #475995 !important;
}

.btn-twitter {
    background: #00acee !important;
}

.btn-google {
    background: #4285f4 !important;
}

.forgot-password {
    font-size: 8px;
    color: #cccccc;
    text-transform: capitalize;
}

.auth-content {
    text-transform: Uppercase;
    color: #a0a0a0;
}

.auth-content h2 {
    font-size: 20px;
}

.auth-content input::placeholder {
    text-transform: capitalize;
}

.forgot-password {
    font-size: 8px;
    color: #cccccc;
}

.auth-social-btns {
    text-transform: uppercase;
}


/* Mobile */
@media (max-width: 768px) {
    .auth-image-side {
        display: none !important;
    }

    .auth-form-side {
        flex: 0 0 100% !important;
    }

    .auth-modal {
        width: 95% !important;
        height: auto !important;
        max-height: 90vh !important;
    }
}