/* ===================================================
   WooCommerce Login/Register Popup
=================================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.wc-auth-popup{

    display:none;

    position:fixed;
    inset:0;
    z-index:999999;
    justify-content:center;
    align-items:center;
    font-family:'Inter',sans-serif;
}

/* Overlay */

.wc-auth-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(4px);
}

/* Popup */

.wc-auth-container{

    position:relative;
    width:100%;
    max-width:520px;

    background:#fff;

    border-radius:18px;

    padding:40px;

    box-shadow:
    0 30px 80px rgba(0,0,0,.25);

    z-index:10;

    animation:popupFade .35s ease;
}

/* Animation */

@keyframes popupFade{

    from{

        opacity:0;
        transform:translateY(40px) scale(.96);

    }

    to{

        opacity:1;
        transform:translateY(0) scale(1);

    }

}

/* Close */

.wc-auth-close{

    position:absolute;

    top:18px;

    right:18px;

    width:38px;

    height:38px;

    border:none;

    border-radius:50%;

    background:#f4f4f4;

    cursor:pointer;

    font-size:22px;

    transition:.3s;
}

.wc-auth-close:hover{

    background:#111;

    color:#fff;

}

/* Logo */

.wc-auth-logo{

    text-align:center;

    margin-bottom:20px;

}

.wc-auth-logo img{

    max-height:55px;

}

/* Heading */

.wc-auth-heading{

    text-align:center;

    margin-bottom:30px;

}

.wc-auth-heading h2{

    font-size:30px;

    margin-bottom:10px;

    font-weight:700;

    color:#111;

}

.wc-auth-heading p{

    color:#777;

    font-size:15px;

    margin:0;

}

/* Tabs */

.wc-auth-tabs{

    display:flex;

    border-radius:10px;

    overflow:hidden;

    background:#f6f6f6;

    margin-bottom:35px;

}

.wc-tab{

    flex:1;

    border:none;

    background:none;

    padding:16px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.wc-tab.active{

    background:#111;

    color:#fff;

}

/* Form */

.form-group{

    margin-bottom:20px;

}

.form-row{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#222;

    font-size:14px;

}

/* Inputs */

.form-group input{

    width:100%;

    height:54px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 18px;

    font-size:15px;

    transition:.3s;

    box-sizing:border-box;

}

.form-group input:focus{

    outline:none;

    border-color:#000;

    box-shadow:0 0 0 3px rgba(0,0,0,.08);

}

/* Password */

.password-field{

    position:relative;

}

.password-field input{

    padding-right:50px;

}

.toggle-password{

    position:absolute;

    right:15px;

    top:40px;

    border:none;

    background:none;

    cursor:pointer;

    font-size:18px;

}

/* Remember */

.remember-forgot{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    font-size:14px;

}

.remember-forgot label{

    display:flex;

    align-items:center;

    gap:8px;

    cursor:pointer;

}

.remember-forgot input{

    width:auto;

}

.remember-forgot a{

    color:#111;

    text-decoration:none;

    font-weight:500;

}

/* Button */

.auth-btn{

    width:100%;

    height:56px;

    border:none;

    border-radius:12px;

    background:#111;

    color:#fff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.auth-btn:hover{

    background:#444;

}

/* Messages */

.login-message,

.register-message{

    margin-top:18px;

    text-align:center;

    font-size:14px;

}

/* Hide Register */

.wc-tab-content{

    display:none;

}

.wc-tab-content.active{

    display:block;

}

/* Mobile */

@media(max-width:768px){

    .wc-auth-container{

        width:94%;

        padding:30px 22px;

    }

    .form-row{

        grid-template-columns:1fr;

        gap:0;

    }

    .wc-auth-heading h2{

        font-size:24px;

    }

    .remember-forgot{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

}

body.wc-popup-open{

    overflow:hidden;

}