:root {
    --app-bg: #fbf3ed;
    --surface: #ffffff;
    --surface-warm: #fff9f5;
    --border: #ead8ce;
    --text: #2d2422;
    --text-muted: #7a6861;
    --accent: #a93532;
    --accent-dark: #812421;
    --accent-soft: #f8deda;
    --sage: #5e7d6b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    /* background:
        radial-gradient(circle at 12% 10%, rgba(169, 53, 50, 0.12), transparent 30%),
        linear-gradient(135deg, #fff8f3 0%, var(--app-bg) 48%, #f7e4df 100%); */
    background: url("/assets/background.webp");
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
    width: min(100%, 920px);
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 70px rgba(95, 55, 45, 0.16);
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px;
    background:
        linear-gradient(145deg, rgba(169, 53, 50, 0.92), rgba(94, 125, 107, 0.86)),
        linear-gradient(180deg, #a93532, #5e7d6b);
    color: #fff;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.brand-mark img {
    width: 58px;
    height: 58px;
    object-fit: cover;
}

.brand-kicker,
.login-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    max-width: 360px;
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
}

.brand-copy {
    max-width: 360px;
    margin: 18px 0 26px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.brand-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-stats span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 48px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-warm) 100%);
}

.header h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 30px;
    font-weight: 850;
}

.header p {
    margin: 0 0 26px;
    color: var(--text-muted);
    font-size: 14px;
}

.login-kicker {
    color: var(--accent);
}

.form label {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.form input {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form input::placeholder {
    color: #a38a7e;
}

.form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(169, 53, 50, 0.13);
}

.form button {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #bf5c4e);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    transition: background 0.16s ease, transform 0.16s ease;
}

.form button:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
}

@media (max-width: 760px) {
    body {
        padding: 16px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        padding: 28px;
    }

    .brand-mark {
        margin-bottom: 28px;
    }

    .main {
        padding: 32px 24px;
    }
}
