:root {
    --ink: #111827;
    --muted: #6f6b66;
    --yellow: #efb400;
    --input: #fffac7;
    --paper: #fffefb;
    --card-border: #e8deca;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body.admin-login-page {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Poppins", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse at 39% 61%, rgba(255, 240, 184, .22), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fffef9 100%);
}

.admin-login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3.5vw, 48px);
}

.admin-login-card {
    width: min(100%, 468px);
    padding: 34px 36px 30px;
    text-align: center;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    box-shadow: 0 14px 34px rgba(45,34,12,.075);
}

.admin-logo-link {
    display: inline-block;
    text-decoration: none;
}

.admin-login-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 27px;
    object-fit: cover;
    border-radius: 22%;
}

.admin-login-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.25px;
}

.admin-login-subtitle {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.admin-login-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
}

.admin-login-form label {
    margin-top: 5px;
    color: #252525;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.admin-login-form input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d8cf9e;
    border-radius: 7px;
    background: var(--input);
    color: #111;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.02);
}

.admin-login-form input:focus {
    border-color: #e4b22a;
    box-shadow: 0 0 0 3px rgba(228,178,42,.13);
    background: #fffce2;
}

.admin-login-form button {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    padding: 10px 16px;
    border: 0;
    border-radius: 7px;
    background: var(--yellow);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: filter .2s ease, transform .2s ease;
}

.admin-login-form button:hover { filter: brightness(.975); }
.admin-login-form button:active { transform: translateY(1px); }

.admin-login-error {
    margin: 4px 0 0;
    padding: 9px 11px;
    border-radius: 7px;
    background: #fff0f0;
    color: #a61b14;
    font-size: 12px;
    line-height: 1.35;
}

.admin-back-link {
    display: inline-block;
    margin-top: 7px;
    color: #635f59;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
}

.admin-back-link:hover,
.admin-back-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid rgba(239,180,0,.35); outline-offset: 3px; }

@media (max-width: 560px) {
    .admin-login-shell { padding: 18px; }
    .admin-login-card {
        width: min(100%, 430px);
        padding: 28px 22px 24px;
        border-radius: 13px;
    }
    .admin-login-logo { width: 92px; height: 92px; margin-bottom: 22px; }
    .admin-login-card h1 { font-size: 25px; }
    .admin-login-subtitle { margin-bottom: 26px; font-size: 13px; }
    .admin-login-form label { font-size: 12.5px; }
    .admin-login-form input, .admin-login-form button { height: 44px; }
}

@media (max-height: 680px) and (orientation: landscape) {
    .admin-login-shell { align-items: start; padding-block: 12px; }
    .admin-login-card { padding-top: 20px; padding-bottom: 18px; }
    .admin-login-logo { width: 70px; height: 70px; margin-bottom: 14px; }
    .admin-login-card h1 { font-size: 23px; }
    .admin-login-subtitle { margin-bottom: 18px; }
    .admin-login-form input, .admin-login-form button { height: 42px; }
}
