:root {
    --login-green: #6bac24;
    --login-green-dark: #3f7b19;
    --login-ink: #162018;
    --login-muted: #647067;
    --login-line: #dfe8dd;
    --login-soft: #f3f8f0;
    --login-card: #ffffff;
    --login-teal: #13756e;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(107, 172, 36, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(107, 172, 36, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #f7fbf4 0%, #eef7ea 48%, #ffffff 100%);
    background-size: 34px 34px, 34px 34px, auto;
    color: var(--login-ink);
    font-family: "Nunito", "Segoe UI", Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    overflow: hidden;
    border: 1px solid rgba(107, 172, 36, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(22, 32, 24, 0.14);
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 30px;
    background:
        linear-gradient(145deg, rgba(22, 32, 24, 0.92), rgba(31, 73, 28, 0.9)),
        linear-gradient(135deg, var(--login-green), var(--login-teal));
    color: #fff;
}

.brand-top {
    display: flex;
    align-items: center;
}

.brand-top img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

.brand-kicker,
.form-heading span {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-copy {
    max-width: 620px;
}

.brand-kicker {
    color: #caefad;
}

.brand-copy h1 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 5vw, 3.55rem);
    line-height: 1;
    font-weight: 900;
}

.brand-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.55;
}

.brand-photo {
    overflow: hidden;
    min-height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.brand-photo img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: block;
    object-fit: cover;
}

.brand-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.brand-metrics article {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.brand-metrics i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(202, 239, 173, 0.16);
    color: #d7f5bd;
}

.brand-metrics strong,
.brand-metrics span {
    display: block;
}

.brand-metrics strong {
    margin-bottom: 5px;
    font-size: 0.96rem;
}

.brand-metrics span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    line-height: 1.45;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 30px;
    background: var(--login-card);
}

.login-card {
    width: min(430px, 100%);
}

.mobile-logo {
    display: none;
}

.form-heading {
    margin-bottom: 20px;
}

.form-logo {
    width: 104px;
    height: 104px;
    display: block;
    object-fit: contain;
    margin-bottom: 14px;
}

.form-heading span {
    color: var(--login-green-dark);
}

.form-heading p {
    margin: 0;
    color: var(--login-muted);
    line-height: 1.6;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #f3c0bc;
    border-radius: 8px;
    background: #fff0ef;
    color: #a33028;
    font-weight: 800;
}

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

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label {
    color: var(--login-ink);
    font-size: 0.92rem;
    font-weight: 900;
}

.input-shell {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--login-line);
    border-radius: 8px;
    background: #fbfdf9;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-shell:focus-within {
    border-color: rgba(107, 172, 36, 0.72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(107, 172, 36, 0.16);
}

.input-shell i {
    color: var(--login-green-dark);
}

.input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--login-ink);
    font: inherit;
}

.input-shell input::placeholder {
    color: #9aa69d;
}

.password-shell {
    padding-right: 8px;
}

.password-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--login-muted);
    cursor: pointer;
}

.password-toggle:hover {
    background: #edf5e8;
    color: var(--login-green-dark);
}

.btn-submit {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--login-green);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(107, 172, 36, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-submit:hover {
    background: var(--login-green-dark);
    box-shadow: 0 16px 30px rgba(63, 123, 25, 0.28);
    transform: translateY(-1px);
}

.client-access {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--login-line);
    border-radius: 8px;
    background: #fff;
    color: var(--login-green-dark);
    text-decoration: none;
    font-weight: 900;
}

.client-access:hover {
    border-color: rgba(107, 172, 36, 0.45);
    background: var(--login-soft);
    color: var(--login-green-dark);
}

@media (max-width: 940px) {
    .login-page {
        padding: 14px;
    }

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

    .login-brand {
        padding: 24px;
    }

    .brand-photo {
        min-height: 170px;
    }

    .brand-photo img {
        min-height: 170px;
    }

    .brand-metrics {
        grid-template-columns: 1fr;
    }

    .login-panel {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .login-page {
        padding: 0;
        place-items: stretch;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand {
        display: block;
        padding: 0;
        background: #102014;
    }

    .brand-top,
    .brand-copy,
    .brand-metrics {
        display: none;
    }

    .brand-photo {
        min-height: 190px;
        border: 0;
        border-radius: 0;
    }

    .brand-photo img {
        min-height: 190px;
        height: 190px;
    }

    .login-panel {
        padding: 24px 18px;
    }

    .mobile-logo {
        display: none;
    }

    .form-logo {
        width: 88px;
        height: 88px;
        margin-bottom: 12px;
    }
}
