
*{box-sizing:border-box}

:root{
    --green:#18a874;
    --green-dark:#0e8c62;
    --navy:#0b2142;
    --text:#19263a;
    --muted:#718096;
    --line:#dce7e2;
    --bg:#f5faf8;
}

html,body{
    margin:0;
    min-height:100%;
}

body{
    font-family:Inter,Segoe UI,Arial,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 13% 17%,rgba(24,168,116,.08),transparent 28%),
        radial-gradient(circle at 88% 83%,rgba(73,127,235,.07),transparent 26%),
        var(--bg);
}

a{color:inherit}

.auth-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:34px 16px;
}

.auth-shell{
    width:100%;
    max-width:520px;
}

.auth-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    padding:38px 36px 30px;
    box-shadow:0 24px 65px rgba(15,40,31,.10);
}

.auth-brand{
    display:block;
    width:max-content;
    margin:0 auto 31px;
    text-decoration:none;
    color:var(--navy);
    font-size:30px;
    line-height:1;
    font-weight:850;
    letter-spacing:-1.5px;
}

.auth-brand span{color:var(--green)}

.auth-header{
    text-align:center;
    margin-bottom:27px;
}

.auth-header h1{
    margin:0;
    color:var(--navy);
    font-size:30px;
    letter-spacing:-.8px;
}

.auth-header p{
    margin:9px auto 0;
    max-width:390px;
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
}

.auth-form{
    display:grid;
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.form-group label,
.label-row label{
    color:#273751;
    font-size:12px;
    font-weight:750;
}

.label-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.label-row a{
    color:var(--green-dark);
    font-size:11px;
    font-weight:750;
    text-decoration:none;
}

.label-row a:hover{text-decoration:underline}

.form-group input{
    width:100%;
    height:49px;
    border:1px solid #d5e1dc;
    border-radius:11px;
    padding:0 14px;
    background:#fff;
    color:var(--text);
    font-size:14px;
    outline:none;
    transition:.18s ease;
}

.form-group input::placeholder{color:#9aa5b5}

.form-group input:hover{border-color:#b7cbc2}

.form-group input:focus{
    border-color:var(--green);
    box-shadow:0 0 0 4px rgba(24,168,116,.10);
}

.password-wrap{
    position:relative;
}

.password-wrap input{
    padding-right:75px;
}

.password-toggle{
    position:absolute;
    top:50%;
    right:8px;
    transform:translateY(-50%);
    height:34px;
    padding:0 10px;
    border:0;
    border-radius:8px;
    background:#edf8f3;
    color:#0d835a;
    font-size:11px;
    font-weight:750;
    cursor:pointer;
}

.password-toggle:hover{background:#e3f5ee}

.auth-submit{
    width:100%;
    height:51px;
    margin-top:2px;
    border:0;
    border-radius:11px;
    background:linear-gradient(135deg,var(--green),#0e9661);
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 11px 25px rgba(24,168,116,.18);
    transition:.18s ease;
}

.auth-submit:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 30px rgba(24,168,116,.24);
}

.alert{
    margin-bottom:18px;
    padding:12px 14px;
    border-radius:10px;
    font-size:12px;
    line-height:1.5;
}

.alert.error{
    color:#b42318;
    background:#fff2f2;
    border:1px solid #f1cccc;
}

.auth-links{
    margin-top:20px;
    text-align:center;
}

.auth-links a{
    color:#5f6f83;
    font-size:12px;
    font-weight:650;
    text-decoration:none;
}

.auth-links a:hover{
    color:var(--green-dark);
    text-decoration:underline;
}

.auth-footer{
    margin-top:19px;
    padding-top:19px;
    border-top:1px solid #edf1ef;
    text-align:center;
    color:#7a8698;
    font-size:12px;
}

.auth-footer a{
    color:var(--green-dark);
    font-weight:800;
    text-decoration:none;
}

.auth-footer a:hover{text-decoration:underline}

@media(max-width:560px){
    .auth-page{
        align-items:flex-start;
        padding:20px 12px;
    }

    .auth-card{
        margin-top:10px;
        padding:26px 18px 23px;
        border-radius:18px;
    }

    .auth-brand{
        font-size:26px;
        margin-bottom:25px;
    }

    .auth-header h1{font-size:27px}
    .auth-header p{font-size:12px}
}
