@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root{
    --green:#14382F;
    --green-dark:#0E2A23;
    --gold:#C8A96A;
    --cream:#F8F4EE;
    --white:#ffffff;
    --border:rgba(200,169,106,.25);
}

.auth-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:99999;
    backdrop-filter:blur(4px);

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:.25s ease;
}

.auth-overlay.show{

    opacity:1;
    visibility:visible;
    pointer-events:auto;

}

.auth-card{
    width:100%;
    max-width:470px;
    background:var(--cream);
    border-radius:24px;
    padding:45px;
    position:relative;
    box-shadow:0 35px 80px rgba(0,0,0,.25);
    animation:popup .35s ease;
}

@keyframes popup{

    from{
        transform:translateY(30px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

.close-auth{
    position:absolute;
    top:18px;
    right:20px;
    border:none;
    background:none;
    font-size:28px;
    cursor:pointer;
    color:var(--green);
}

.auth-card h2{
    font-family:"Cormorant Garamond",serif;
    font-size:42px;
    color:var(--green);
    margin-bottom:10px;
    text-align:center;
}

.auth-card p{
    color:#666;
    text-align:center;
    margin-bottom:25px;
}

.auth-card input{
    width:100%;
    height:55px;
    border:1px solid #ddd;
    border-radius:12px;
    padding:0 18px;
    margin-bottom:18px;
    background:#fff;
    transition:.3s;
    font-size:15px;
}

.auth-card input:focus{
    outline:none;
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(200,169,106,.15);
}

.auth-btn{
    width:100%;
    height:55px;
    border:none;
    border-radius:50px;
    background:var(--green);
    color:#fff;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.auth-btn:hover{
    background:var(--green-dark);
}

.switch-auth{
    margin-top:20px;
    text-align:center;
}

.switch-auth a{
    color:var(--gold);
    font-weight:600;
    text-decoration:none;
}

.switch-auth a:hover{
    text-decoration:underline;
}

.forgot-link{
    display:block;
    text-align:right;
    color:var(--gold);
    text-decoration:none;
    margin:-6px 0 18px;
    font-size:14px;
}

.forgot-link:hover{
    text-decoration:underline;
}

.success-msg{
    background:#dff7e5;
    color:#157347;
    padding:12px;
    border-radius:10px;
    margin-bottom:18px;
    text-align:center;
}

.error-msg{
    background:#fde7e7;
    color:#b42318;
    padding:12px;
    border-radius:10px;
    margin-bottom:18px;
    text-align:center;
}

@media(max-width:576px){

    .auth-card{
        width:92%;
        padding:30px 22px;
    }

    .auth-card h2{
        font-size:34px;
    }

}