:root{
    --bg:#eee9e1;
    --panel:rgba(255,255,255,.72);
    --panel-strong:rgba(255,255,255,.9);
    --text:#211f1b;
    --muted:#6d675f;
    --border:rgba(39,34,26,.14);
    --accent:#d12a2a;
    --accent-dark:#961b1b;
    --danger:#b71919;
    --success:#16814b;
    --shadow:0 24px 80px rgba(38,31,22,.22);
}

*{box-sizing:border-box}

body{
    margin:0;
    min-height:100vh;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 12% 10%,rgba(209,42,42,.22),transparent 28%),
        radial-gradient(circle at 90% 90%,rgba(150,27,27,.18),transparent 30%),
        linear-gradient(135deg,#f4f0e8 0%,#d8d0c4 48%,#b5aa9b 100%);
}

.auth-shell{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:28px;
}

.auth-card{
    width:min(460px,100%);
    padding:28px;
    border:1px solid var(--border);
    border-radius:28px;
    background:var(--panel);
    box-shadow:var(--shadow);
    backdrop-filter:blur(22px) saturate(170%);
    -webkit-backdrop-filter:blur(22px) saturate(170%);
}

.brand{
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:18px;
}

.brand-icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    overflow:hidden;
    flex:0 0 auto;
    border-radius:20px;
    background:linear-gradient(180deg,var(--accent),var(--accent-dark));
    box-shadow:0 16px 32px rgba(0,0,0,.24);
}

.brand-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.eyebrow{
    margin:0 0 4px;
    color:var(--accent);
    font-size:.78rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.14em;
}

h1{
    margin:0;
    font-size:clamp(1.7rem,4vw,2.35rem);
    line-height:1.05;
}

.lead{
    margin:0 0 22px;
    color:var(--muted);
    line-height:1.55;
}

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

.field{
    display:grid;
    gap:7px;
}

label{
    color:var(--muted);
    font-size:.88rem;
    font-weight:700;
}

small{
    color:var(--muted);
    line-height:1.35;
}

input{
    width:100%;
    min-height:46px;
    padding:12px 14px;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--panel-strong);
    color:var(--text);
    font:inherit;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input:focus{
    border-color:rgba(209,42,42,.55);
    box-shadow:0 0 0 4px rgba(209,42,42,.12);
}

.btn{
    min-height:46px;
    border:1px solid var(--border);
    border-radius:999px;
    padding:11px 18px;
    cursor:pointer;
    color:var(--text);
    background:rgba(255,255,255,.48);
    font:inherit;
    font-weight:800;
    text-decoration:none;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    transition:transform .18s ease, filter .18s ease, opacity .18s ease;
}

.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.65;cursor:not-allowed;transform:none}

.btn.primary{
    width:100%;
    border:none;
    color:white;
    background:linear-gradient(180deg,var(--accent),var(--accent-dark));
    box-shadow:0 14px 28px rgba(209,42,42,.25);
}

.notice{
    padding:12px 14px;
    border-radius:16px;
    border:1px solid rgba(183,25,25,.24);
    color:var(--danger);
    background:rgba(183,25,25,.08);
    line-height:1.4;
}

.notice.success{
    color:var(--success);
    border-color:rgba(22,129,75,.24);
    background:rgba(22,129,75,.08);
}

.auth-footer{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:8px;
    color:var(--muted);
}

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

@media (max-width:520px){
    .auth-shell{padding:16px}
    .auth-card{padding:22px;border-radius:22px}
    .brand-icon{width:50px;height:50px;border-radius:17px}
}
