﻿/* =========================================================
   AUTH MODAL CSS (LOCKED)
   FILE: auth-modal.css
   STYLE: DOUBLE SLIDER SIGN IN / SIGN UP
   - Container toggle class: right-panel-active
   - Works inside Bootstrap Modal
   THEME:
   - Overlay: Dark Green
   - Text: White
   - Buttons: Bhagwa (Saffron) + White text
========================================================= */

/* ================= MODAL FIXES ================= */
#authModal .authfp-modal-dialog {
    width: 900px;
    max-width: 95vw;
    margin: 12px auto;
}

#authModal .authfp-modal-content {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

#authModal .authfp-modal-body {
    padding: 0 !important;
    position: relative;
}

/* ================= CLOSE BUTTON ================= */
#authModal .authfp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: .2s;
}

    #authModal .authfp-close:hover {
        background: rgba(0,0,0,.04);
    }

/* ================= MAIN CONTAINER ================= */
#authModal .authfp-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.18), 0 10px 10px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 520px;
    margin: 0 auto;
}

/* ================= FORMS COMMON ================= */
#authModal .authfp-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

#authModal .authfp-form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

    #authModal .authfp-form h1 {
        font-weight: 800;
        margin: 0;
        font-size: 26px;
        color: #111827;
    }

    #authModal .authfp-form span {
        font-size: 12px;
        color: #6b7280;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* ================= INPUTS ================= */
    #authModal .authfp-form input {
        background-color: #f3f4f6;
        border: 1px solid rgba(0,0,0,.06);
        padding: 12px 14px;
        margin: 8px 0;
        width: 100%;
        border-radius: 10px;
        outline: none;
        font-size: 14px;
        transition: .2s;
    }

        #authModal .authfp-form input:focus {
            border-color: rgba(255, 103, 0, .75);
            box-shadow: 0 0 0 4px rgba(255, 103, 0, .18);
            background: #fff;
        }

/* ================= PASSWORD WRAP ================= */
#authModal .authfp-password-wrap {
    width: 100%;
    position: relative;
}

    #authModal .authfp-password-wrap input {
        padding-right: 44px;
    }

#authModal .authfp-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    opacity: .75;
    padding: 4px;
}

    #authModal .authfp-eye:hover {
        opacity: 1;
    }

/* ================= BUTTONS (BHAGWA THEME) ================= */
#authModal .authfp-btn {
    border-radius: 22px;
    border: 1px solid #ff6700; /* Bhagwa */
    background-color: #ff6700; /* Bhagwa */
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in, filter .2s, box-shadow .2s;
    margin-top: 12px;
    cursor: pointer;
}

    #authModal .authfp-btn:active {
        transform: scale(0.96);
    }

    #authModal .authfp-btn:hover {
        filter: brightness(.95);
        box-shadow: 0 10px 20px rgba(255, 103, 0, .25);
    }

    #authModal .authfp-btn:focus {
        outline: none;
    }

    /* Ghost button on overlay (white border + white text) */
    #authModal .authfp-btn.ghost {
        background-color: transparent !important;
        border: 1px solid #ffffff !important;
        color: #ffffff !important;
    }

        #authModal .authfp-btn.ghost:hover {
            background: rgba(255,255,255,0.12) !important;
        }

/* ================= SOCIAL ================= */
#authModal .authfp-social-container {
    margin: 18px 0;
    display: flex;
    gap: 10px;
}

#authModal .authfp-social {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    text-decoration: none;
    color: #111827;
    background: #fff;
    transition: .2s;
}

    #authModal .authfp-social:hover {
        background: rgba(255, 103, 0, .08);
        border-color: rgba(255, 103, 0, .35);
        color: #ff6700;
    }

/* ================= SIGN IN / SIGN UP POSITION ================= */
#authModal .authfp-sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

#authModal .authfp-sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

/* When active */
#authModal .authfp-container.right-panel-active .authfp-sign-in-container {
    transform: translateX(100%);
}

#authModal .authfp-container.right-panel-active .authfp-sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: authfp-show 0.6s;
}

@keyframes authfp-show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

/* ================= ROW (REMEMBER + FORGOT) ================= */
#authModal .authfp-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 6px;
}

#authModal .authfp-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #111827;
}

    #authModal .authfp-remember input {
        width: 16px;
        height: 16px;
        margin: 0;
    }

#authModal .authfp-forgot {
    font-size: 13px;
    font-weight: 700;
    color: #ff6700; /* Bhagwa */
    text-decoration: none;
}

    #authModal .authfp-forgot:hover {
        text-decoration: underline;
    }

/* ================= OVERLAY (DARK GREEN + WHITE TEXT) ================= */
#authModal .authfp-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

#authModal .authfp-container.right-panel-active .authfp-overlay-container {
    transform: translateX(-100%);
}

/* Dark Green shading */
#authModal .authfp-overlay {
    background: #064e3b;
    background: linear-gradient(to right, #064e3b, #065f46);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

#authModal .authfp-container.right-panel-active .authfp-overlay {
    transform: translateX(50%);
}

#authModal .authfp-overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    color: #ffffff;
}

    #authModal .authfp-overlay-panel h1 {
        font-weight: 900;
        margin: 0;
        font-size: 30px;
        color: #ffffff !important;
    }

    #authModal .authfp-overlay-panel p {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: 0.3px;
        margin: 18px 0 26px;
        opacity: .95;
        color: #ffffff !important;
    }

#authModal .authfp-overlay-left {
    transform: translateX(-20%);
}

#authModal .authfp-container.right-panel-active .authfp-overlay-left {
    transform: translateX(0);
}

#authModal .authfp-overlay-right {
    right: 0;
    transform: translateX(0);
}

#authModal .authfp-container.right-panel-active .authfp-overlay-right {
    transform: translateX(20%);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 991px) {

    #authModal .authfp-modal-dialog {
        width: 100%;
        max-width: 95vw;
    }

    #authModal .authfp-container {
        min-height: 560px;
    }

    #authModal .authfp-form {
        padding: 0 22px;
    }
}

@media (max-width: 576px) {

    #authModal .authfp-container {
        width: 100%;
        min-height: 600px;
    }

    /* On very small screens, overlay is hidden for clean UI */
    #authModal .authfp-overlay-container {
        display: none;
    }

    #authModal .authfp-sign-in-container,
    #authModal .authfp-sign-up-container {
        width: 100%;
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }

    #authModal .authfp-form-container {
        position: relative;
        height: auto;
    }

    /* Hide signup by default on mobile */
    #authModal .authfp-sign-up-container {
        display: none;
    }

    /* When active show signup */
    #authModal .authfp-container.right-panel-active .authfp-sign-up-container {
        display: block;
    }

    #authModal .authfp-container.right-panel-active .authfp-sign-in-container {
        display: none;
    }
}
