:root {
    --green-950: #0b3b21;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;

    --gold-500: #d6a84f;
    --gold-400: #e4bf70;

    --cream: #f7f5ef;
    --cream-dark: #eeeae0;

    --white: #ffffff;
    --text: #172018;
    --text-soft: #66706a;
    --border: #e0e6df;

    --danger: #c2413b;

    --shadow-xl:
        0 24px 60px rgba(18, 53, 32, 0.12);

    --shadow-lg:
        0 16px 40px rgba(18, 53, 32, 0.10);

    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 14px;

    --transition: 180ms ease;
}


/* ------------------------------
   RESET
------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    min-height: 100%;
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(34, 197, 94, 0.10),
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(214, 168, 79, 0.11),
            transparent 30%
        ),
        var(--cream);

    color: var(--text);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


button,
input {
    font: inherit;
}


button {
    border: 0;
    cursor: pointer;
}


button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.30);
    outline-offset: 2px;
}


/* ------------------------------
   PAGE
------------------------------ */

.login-page {
    min-height: calc(100vh - 62px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 34px 20px;
}


/* ------------------------------
   MAIN SHELL
------------------------------ */

.login-shell {
    width: min(1060px, 100%);

    display: grid;
    grid-template-columns: 0.92fr 1.08fr;

    background: var(--white);

    border: 1px solid rgba(20, 83, 45, 0.08);

    border-radius: var(--radius-xl);

    overflow: hidden;

    box-shadow: var(--shadow-xl);
}


/* ------------------------------
   BRAND PANEL
------------------------------ */

.brand-panel {
    min-height: 650px;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 54px;

    color: var(--white);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(214, 168, 79, 0.20),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            var(--green-950),
            var(--green-900) 55%,
            #0e4627
        );
}


.brand-panel::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -170px;
    bottom: -130px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 0 0 40px rgba(255,255,255,0.025),
        0 0 0 80px rgba(255,255,255,0.018);
}


.brand-panel::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    left: -95px;
    top: -85px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.045);
}


.brand-mark {
    position: relative;

    width: 88px;
    height: 88px;

    margin-bottom: 30px;

    border-radius: 26px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.13);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 12px 30px rgba(0,0,0,0.12);
}


.brand-stem {
    position: absolute;

    width: 8px;
    height: 42px;

    left: 40px;
    bottom: 16px;

    border-radius: 100px;

    transform: rotate(-19deg);

    background: var(--gold-400);
}


.brand-leaf {
    position: absolute;

    width: 25px;
    height: 42px;

    background: #a7e6b9;

    border-radius: 100% 0 100% 0;

    transform-origin: bottom left;
}


.leaf-one {
    left: 22px;
    top: 15px;
    transform: rotate(-28deg);
}


.leaf-two {
    left: 44px;
    top: 20px;
    transform: rotate(33deg) scale(0.88);
}


.brand-copy {
    position: relative;
    z-index: 2;
}


.brand-kicker {
    display: block;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.86rem;
    font-weight: 700;

    letter-spacing: 0.28em;
}


.brand-copy h1 {
    margin-top: 3px;

    font-size: clamp(3.3rem, 7vw, 5.3rem);

    line-height: 0.95;

    letter-spacing: 0.03em;

    font-weight: 900;
}


.brand-copy p {
    margin-top: 18px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 1.03rem;
}


.brand-message {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 80px;

    color: rgba(255, 255, 255, 0.66);

    font-size: 0.85rem;
    font-weight: 600;

    letter-spacing: 0.02em;
}


.message-line {
    width: 32px;
    height: 1px;

    background: var(--gold-400);
}


/* ------------------------------
   LOGIN PANEL
------------------------------ */

.login-panel {
    padding: 56px 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.login-heading {
    margin-bottom: 30px;
}


.eyebrow {
    display: inline-flex;

    color: var(--green-700);

    font-size: 0.74rem;
    font-weight: 800;

    letter-spacing: 0.16em;
}


.login-heading h2 {
    margin-top: 8px;

    font-size: clamp(2rem, 4vw, 2.7rem);

    line-height: 1.1;

    letter-spacing: -0.035em;
}


.login-heading p {
    margin-top: 10px;

    color: var(--text-soft);

    font-size: 0.98rem;
}


/* ------------------------------
   ROLE CARDS
------------------------------ */

.role-selection {
    display: grid;
    gap: 12px;

    margin-bottom: 25px;
}


.role-card {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px;

    text-align: left;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: #fbfcfa;

    color: var(--text);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


.role-card:hover {
    transform: translateY(-1px);

    border-color: rgba(20, 83, 45, 0.25);

    background: #ffffff;
}


.role-card.is-selected {
    border-color: rgba(20, 83, 45, 0.42);

    background:
        linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.065),
            rgba(255, 255, 255, 1)
        );

    box-shadow:
        0 8px 22px rgba(20, 83, 45, 0.07);
}


.role-icon {
    min-width: 48px;
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--white);

    background: var(--green-900);

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.05em;
}


.manager-icon {
    background:
        linear-gradient(
            145deg,
            #87651f,
            var(--gold-500)
        );
}


.role-content {
    display: grid;
    gap: 3px;

    min-width: 0;
}


.role-content strong {
    font-size: 0.96rem;
}


.role-content small {
    color: var(--text-soft);

    font-size: 0.76rem;

    line-height: 1.4;
}


.role-check {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    margin-left: auto;

    border-radius: 50%;

    color: transparent;

    border: 1px solid #d7ddd6;

    font-size: 0.76rem;
    font-weight: 900;

    transition: var(--transition);
}


.role-card.is-selected .role-check {
    color: var(--white);

    background: var(--green-700);

    border-color: var(--green-700);
}


/* ------------------------------
   FORM
------------------------------ */

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


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


.field-group label {
    font-size: 0.80rem;
    font-weight: 750;

    color: #3b443e;
}


.password-wrapper {
    position: relative;
}


.password-wrapper input {
    width: 100%;

    height: 56px;

    padding: 0 52px 0 16px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #fcfdfb;

    color: var(--text);

    font-size: 0.95rem;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


.password-wrapper input::placeholder {
    color: #9aa49d;
}


.password-wrapper input:focus {
    background: #ffffff;

    border-color: rgba(20, 83, 45, 0.55);

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.09);

    outline: none;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 7px;

    width: 42px;
    height: 42px;

    transform: translateY(-50%);

    border-radius: 11px;

    color: #67716a;

    background: transparent;
}


.password-toggle:hover {
    background: var(--cream);
}


.login-feedback {
    min-height: 0;

    color: var(--danger);

    font-size: 0.81rem;
}


.login-button {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border-radius: 14px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--green-900),
            var(--green-700)
        );

    font-size: 0.92rem;
    font-weight: 800;

    box-shadow:
        0 12px 24px rgba(20, 83, 45, 0.18);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}


.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 15px 28px rgba(20, 83, 45, 0.22);

    filter: brightness(1.02);
}


.login-button:active {
    transform: translateY(0);
}


.login-arrow {
    font-size: 1.05rem;
}


/* ------------------------------
   FOOTER STATUS
------------------------------ */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 24px;

    color: #89928c;

    font-size: 0.72rem;
    font-weight: 600;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22a35a;

    box-shadow:
        0 0 0 4px rgba(34, 163, 90, 0.10);
}


/* ------------------------------
   SITE FOOTER
------------------------------ */

.site-footer {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 20px;

    color: #7c867f;

    background: transparent;

    font-size: 0.72rem;

    text-align: center;
}


.footer-divider {
    color: #b0b8b2;
}


/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 900px) {

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

    .brand-panel {
        min-height: auto;

        padding: 40px 38px;
    }

    .brand-mark {
        width: 74px;
        height: 74px;

        margin-bottom: 21px;
    }

    .brand-stem {
        left: 33px;
        height: 35px;
    }

    .leaf-one {
        left: 18px;
        top: 13px;
    }

    .leaf-two {
        left: 38px;
        top: 18px;
    }

    .brand-copy h1 {
        font-size: 3.35rem;
    }

    .brand-message {
        margin-top: 34px;
    }

    .login-panel {
        padding: 42px 38px 46px;
    }
}


@media (max-width: 560px) {

    .login-page {
        min-height: auto;

        padding: 12px;
    }

    .login-shell {
        border-radius: 22px;
    }

    .brand-panel {
        padding: 30px 24px;
    }

    .brand-mark {
        width: 62px;
        height: 62px;

        border-radius: 19px;
    }

    .brand-copy h1 {
        font-size: 2.85rem;
    }

    .brand-copy p {
        font-size: 0.91rem;
    }

    .brand-message {
        margin-top: 25px;
    }

    .login-panel {
        padding: 30px 23px 34px;
    }

    .login-heading h2 {
        font-size: 2rem;
    }

    .role-card {
        padding: 12px;
    }

    .role-icon {
        min-width: 44px;
        width: 44px;
        height: 44px;

        border-radius: 12px;
    }

    .role-content small {
        font-size: 0.72rem;
    }

    .site-footer {
        min-height: 50px;

        font-size: 0.68rem;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}