/*=========================================
AUTH OVERLAY
=========================================*/

.auth-overlay{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:2rem;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    opacity:0;
    visibility:hidden;
    transition:.35s ease;
    z-index:9999;
}

.auth-overlay.active{
    opacity:1;
    visibility:visible;
}

/*=========================================
MODAL
=========================================*/
.auth-modal{
    width:100%;
    max-width:500px;
    max-height:90vh;
    overflow-y:auto;
    background:#ffffff;
    border-radius:24px;
    padding:2.5rem;
    position:relative;
    box-shadow:0 30px 80px rgba(0,0,0,.18);
    animation:authPop .35s ease;
    transition:max-width .35s ease;
}

.auth-modal.register-mode{

    max-width:760px;

}


/*=========================================
ANIMATION
=========================================*/

@keyframes authPop{

    from{

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

    }

    to{

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

    }

}

/*=========================================
CLOSE BUTTON
=========================================*/

.auth-close{

    position:absolute;
    top:18px;
    right:18px;
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:#f3f4f6;
    font-size:22px;
    transition:.3s;

}

.auth-close:hover{

    background:#111;
    color:#fff;

}

/*=========================================
FORMS
=========================================*/

.auth-form{

    display:none;

}

.auth-form.active{

    display:block;

}

/*=========================================
HEADER
=========================================*/

.auth-header{

    text-align:center;
    margin-bottom:2rem;

}

.auth-header h2{

    font-size:2rem;
    color:#111827;
    margin-bottom:.5rem;

}

.auth-header p{

    color:#6b7280;
    line-height:1.6;

}

/*=========================================
FORM
=========================================*/

.form-group{

    margin-bottom:1.4rem;

}

.form-group label{

    display:block;
    margin-bottom:.55rem;
    font-weight:600;
    color:#111827;

}

.form-group input,
.form-group select{

    width:100%;
    height:54px;
    border:1px solid #d1d5db;
    border-radius:14px;
    padding:0 16px;
    font-size:15px;
    outline:none;
    transition:.3s;
    background:#fff;

}

.form-group input:focus,
.form-group select:focus{

    border-color:#c49b3a;
    box-shadow:0 0 0 4px rgba(196,155,58,.18);

}

/*=========================================
NAME ROW
=========================================*/

.form-row{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;

}

/*=========================================
PASSWORD
=========================================*/

.password-wrapper{

    position:relative;

}

.password-wrapper input{

    padding-right:55px;

}

.password-toggle{

    position:absolute;
    top:50%;
    right:15px;
    transform:translateY(-50%);
    border:none;
    background:none;
    cursor:pointer;
    font-size:16px;
    color:#6b7280;

}

.password-toggle:hover{

    color:#111827;

}

/*=========================================
OPTIONS
=========================================*/

.auth-options{

    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:1.5rem;
    font-size:14px;

}

.remember-me{

    display:flex;
    align-items:center;
    gap:.45rem;
    cursor:pointer;

}

.auth-options a{

    color:#c49b3a;
    text-decoration:none;
    font-weight:600;

}

.auth-options a:hover{

    text-decoration:underline;

}

/*=========================================
TERMS
=========================================*/

.terms-container{

    margin:1.5rem 0;

}

.terms-check{

    display:flex;
    align-items:flex-start;
    gap:.75rem;
    cursor:pointer;
    font-size:14px;
    line-height:1.6;
    color:#4b5563;

}

.terms-check a{

    color:#c49b3a;
    text-decoration:none;
    font-weight:600;

}

.terms-check a:hover{

    text-decoration:underline;

}

/*=========================================
BUTTON
=========================================*/

.auth-btn{

    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    background:#111827;
    color:#fff;
    font-size:16px;
    font-weight:600;
    transition:.3s;

}

.auth-btn:hover{

    background:#c49b3a;
    color:#111;

}

/*=========================================
SWITCH
=========================================*/

.auth-switch{

    margin-top:1.7rem;
    text-align:center;
    color:#6b7280;

}

.auth-switch a{

    color:#c49b3a;
    font-weight:700;
    text-decoration:none;

}

.auth-switch a:hover{

    text-decoration:underline;

}

/*=========================================
MOBILE
=========================================*/

@media(max-width:768px){

    .auth-overlay{

        padding:1rem;

    }

    .auth-modal{

        padding:2rem 1.4rem;
        border-radius:20px;

    }

    .form-row{

        grid-template-columns:1fr;

    }

}