*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --dark:#111111;
    --card:rgba(255,255,255,.03);
    --accent:#8C7A4F;
    --text:#F4F4F4;
    --text-light:#B8B8B8;
    --border:rgba(255,255,255,.07);
    --shadow:0 25px 70px rgba(0,0,0,.45);
}

body{
    min-height:100vh;
    background:
        radial-gradient(circle at top right, rgba(140,122,79,.16), transparent 35%),
        var(--dark);
    color:var(--text);
    font-family:'Inter',sans-serif;
}

.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:60px 5%;
}

.login-card{
    width:100%;
    max-width:480px;
    padding:48px;
    border-radius:26px;
    background:var(--card);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.login-brand{
    margin-bottom:36px;
    text-align:center;
}

.login-brand h1{
    font-family:'Cormorant Garamond',serif;
    font-size:3.2rem;
    line-height:1;
    color:white;
    margin-bottom:16px;
}

.login-brand p{
    color:var(--text-light);
    line-height:1.7;
}

.login-form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.login-form[hidden]{
    display:none;
}

.login-form label{
    color:white;
    font-size:.95rem;
}

.login-error,
.login-success{
    padding:12px 14px;
    border:1px solid rgba(140,122,79,.45);
    border-radius:12px;
    background:rgba(140,122,79,.1);
    color:var(--text);
    font-size:.9rem;
    line-height:1.5;
}

.login-success{
    border-color:rgba(91,170,112,.45);
    background:rgba(91,170,112,.1);
}

.login-guidance{
    color:var(--text-light);
    font-size:.95rem;
    line-height:1.6;
    text-align:center;
}

.login-form input{
    width:100%;
    padding:15px 18px;
    border-radius:12px;
    border:1px solid var(--border);
    background:rgba(255,255,255,.03);
    color:white;
    outline:none;
    transition:.3s ease;
}

.login-form input:focus{
    border-color:rgba(140,122,79,.45);
    background:rgba(255,255,255,.05);
}

.login-form input::placeholder{
    color:rgba(255,255,255,.4);
}

.password-field{
    position:relative;
}

.password-field input{
    padding-right:54px;
}

.login-form .password-toggle{
    position:absolute;
    top:50%;
    right:12px;
    display:flex;
    width:36px;
    height:36px;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    border-radius:8px;
    background:transparent;
    color:var(--text-light);
    cursor:pointer;
    transform:translateY(-50%);
    transition:.3s ease;
}

.login-form .password-toggle:hover{
    background:rgba(140,122,79,.12);
    color:white;
}

.login-form .password-toggle:focus-visible{
    outline:2px solid var(--accent);
    outline-offset:2px;
}

.password-toggle svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-width:1.8;
}

.password-toggle-slash{
    opacity:0;
}

.password-toggle.is-visible .password-toggle-slash{
    opacity:1;
}

.login-form > button[type="submit"]{
    margin-top:14px;
    padding:16px;
    border:none;
    border-radius:12px;
    background:var(--accent);
    color:white;
    cursor:pointer;
    transition:.35s ease;
}

.login-form > button[type="submit"]:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(140,122,79,.35);
}

.login-footer{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:14px;
    text-align:center;
}

.login-footer a{
    color:white;
    text-decoration:none;
}

.login-footer span{
    color:var(--text-light);
    font-size:.9rem;
}

@media(max-width:480px){

    .login-card{
        padding:34px 24px;
    }

    .login-brand h1{
        font-size:2.5rem;
    }

}
