:root {
    color-scheme: light;
    --ink: #14201c;
    --muted: #69746f;
    --line: rgba(20, 32, 28, 0.14);
    --green: #0f6f55;
    --green-dark: #074333;
    --red: #e64521;
    --gold: #f4c542;
    --paper: #ffffff;
    --soft: #f4f7f3;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(15, 111, 85, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(230, 69, 33, 0.09), transparent 30%),
        var(--soft);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(32px, 6vw, 80px);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(7, 67, 51, 0.92), rgba(15, 111, 85, 0.86)),
        radial-gradient(circle at 15% 18%, rgba(244, 197, 66, 0.35), transparent 28%);
    color: #fff;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -8% -18% auto;
    width: 48%;
    aspect-ratio: 1;
    border: 36px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
}

.brand-logo {
    display: block;
    width: min(520px, 100%);
    height: auto;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.brand-kicker {
    margin: 34px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.15;
    letter-spacing: 0;
}

.brand-copy {
    max-width: 560px;
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.86);
}

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

.brand-stats span {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 64px);
}

.form-card {
    width: min(430px, 100%);
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(20, 32, 28, 0.12);
}

.form-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.secure-mark {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}

.form-heading p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 14px;
}

h2 {
    margin-bottom: 0;
    font-size: 28px;
    letter-spacing: 0;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-error {
    padding: 12px 14px;
    border: 1px solid rgba(230, 69, 33, 0.28);
    border-radius: 8px;
    background: rgba(230, 69, 33, 0.08);
    color: #9d2d18;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

label {
    font-size: 14px;
    font-weight: 700;
    color: #26332f;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfb;
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 111, 85, 0.14);
}

button {
    min-height: 54px;
    margin-top: 10px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15, 111, 85, 0.22);
}

button:hover,
button:focus-visible {
    background: linear-gradient(135deg, #128767, #083c2e);
}

.form-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    font-size: 14px;
}

a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--red);
    text-decoration: underline;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: auto;
        padding: 30px 20px 34px;
    }

    .brand-logo {
        width: min(420px, 100%);
        padding: 12px;
    }

    .brand-kicker {
        margin-top: 24px;
    }

    h1 {
        font-size: 34px;
    }

    .brand-copy {
        font-size: 17px;
        line-height: 1.8;
    }

    .form-panel {
        padding: 22px 16px 34px;
    }

    .form-card {
        box-shadow: none;
    }
}

@media (max-width: 420px) {
    .form-links,
    .brand-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-stats span {
        text-align: center;
    }
}
