/* ===========================
   PREMIUM SIGNUP POPUP
=========================== */

.signup-popup{
    position:fixed;
    inset:0;
    width:100%;
    height:100vh;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(8px);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999998 !important;
    animation:fadeIn .5s ease;
    pointer-events:none !important;
}

.signup-popup.hidden {
    display: none !important;
}

.signup-card{
    width:950px;
    max-width:92%;
    display:flex;
    overflow:visible;
    border-radius:28px;
    background:#fff;
    box-shadow:0 25px 70px rgba(0,0,0,.35);
    animation:popup .6s cubic-bezier(.2,.8,.2,1);
    pointer-events:auto !important;
    position:relative;
    z-index:1;
}

/* LEFT */

.signup-left{
    width:45%;
    padding:60px 45px;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    color:#fff;
    position:relative;
    overflow:hidden;
    pointer-events:auto;
}

.signup-left::before{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    background:rgba(255,255,255,.12);
    border-radius:50%;
    top:-90px;
    right:-90px;
}

.signup-left::after{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    background:rgba(255,255,255,.08);
    border-radius:50%;
    bottom:-70px;
    left:-60px;
}

.offer-badge{
    display:inline-block;
    padding:8px 18px;
    background:#fff;
    color:#2563eb;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    margin-bottom:25px;
    animation:float 3s ease-in-out infinite;
}

.signup-left h2{
    font-size:44px;
    font-weight:800;
    line-height:1.2;
    margin-bottom:18px;
}

.signup-left h2 span{
    color:#FFD54F;
}

.signup-left p{
    font-size:17px;
    line-height:1.8;
    margin-bottom:28px;
}

.offer-list{
    list-style:none;
    padding:0;
    margin:0;
}

.offer-list li{
    margin-bottom:16px;
    font-size:17px;
    font-weight:500;
}

/* RIGHT */

.signup-right{
    width:55%;
    padding:60px 50px;
    background:#fff;
    position:relative;
    pointer-events:auto;
}

.signup-right h3{
    font-size:34px;
    font-weight:800;
    color:#222;
    margin-bottom:30px;
}

.signup-right input{
    width:100%;
    padding:16px 20px;
    margin-bottom:18px;
    border:2px solid #e6e6e6;
    border-radius:14px;
    font-size:16px;
    transition:.35s;
    outline:none;
    pointer-events:auto !important;
    cursor:text !important;
}

.signup-right input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 5px rgba(37,99,235,.12);
}

.signup-right button{
    width:100%;
    padding:17px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    color:#fff;
    font-size:17px;
    font-weight:700;
    cursor:pointer !important;
    transition:.35s;
    pointer-events:auto !important;
}

.signup-right button:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(37,99,235,.35);
}

.login-link{
    margin-top:24px;
    text-align:center;
    font-size:15px;
    color:#666;
}

.login-link a{
    color:#2563eb;
    font-weight:700;
    text-decoration:none;
}

.login-link a:hover{
    text-decoration:underline;
}

/* CLOSE */

.close-popup{
    position:absolute;
    top:-15px;
    right:-15px;
    font-size:34px;
    color:#fff;
    cursor:pointer !important;
    z-index:1000 !important;
    transition:.3s;
    pointer-events:auto !important;
    background:#2563eb;
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex !important;
    align-items:center;
    justify-content:center;
    line-height:1;
    border:none;
    padding:0;
    margin:0;
    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
}

.close-popup:active,
.close-popup:focus {
    outline:none;
    pointer-events:auto !important;
}

.signup-right .close-popup{
    color:#fff;
}

.close-popup:hover{
    transform:rotate(90deg) scale(1.15);
}

/* ANIMATIONS */

@keyframes popup{
    from{
        opacity:0;
        transform:translateY(50px) scale(.9);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

@keyframes float{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-8px);
    }
    100%{
        transform:translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width:900px){

    .signup-card{
        flex-direction:column;
    }

    .signup-left,
    .signup-right{
        width:100%;
    }

    .signup-left{
        padding:40px 30px;
    }

    .signup-right{
        padding:40px 30px;
    }

    .signup-left h2{
        font-size:34px;
    }

}

/* ===========================
   Thank You Popup
=========================== */

.thankyou-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);

    display:none;
    justify-content:center;
    align-items:center;

    z-index:999999;

    animation:fadeIn .35s ease;
}

.thankyou-card{

    width:420px;
    max-width:92%;

    background:#ffffff;

    border-radius:25px;

    padding:45px 35px;

    text-align:center;

    box-shadow:0 25px 80px rgba(0,0,0,.25);

    animation:popup .4s ease;
}

.success-circle{

    width:90px;
    height:90px;

    margin:auto;

    border-radius:50%;

    background:linear-gradient(135deg,#6a11cb,#2575fc);

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:42px;

    margin-bottom:25px;
}

.thankyou-card h2{

    font-size:30px;

    font-weight:700;

    color:#222;

    margin-bottom:15px;
}

.thankyou-card p{

    color:#666;

    line-height:1.7;

    margin-bottom:30px;
}

.continue-btn{

    border:none;

    background:linear-gradient(135deg,#ff2d7a,#ff6b6b);

    color:#fff;

    padding:15px 40px;

    border-radius:50px;

    font-size:17px;

    font-weight:600;

    transition:.3s;

    cursor:pointer;
}

.continue-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(255,45,122,.35);

}

@keyframes popup{

    from{

        opacity:0;
        transform:scale(.8);

    }

    to{

        opacity:1;
        transform:scale(1);

    }

}

@keyframes fadeIn{

    from{opacity:0;}

    to{opacity:1;}

}

/* Server-rendered validation errors inside the offer popup */
.signup-error-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecea;
    border: 1px solid #f5c2bd;
    color: #b3261e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.signup-error-list li + li {
    margin-top: 4px;
}
