:root {
    --green: #07571A;
    --gold: #E39914;
    --green-dark: #043b12;
    --green-soft: #eaf5ed;
    --text: #18221b;
    --muted: #69716b;
    --line: #dfe5e0;
    --white: #ffffff;
    --danger: #a52d2d;
    --shadow: 0 24px 70px rgba(7, 87, 26, .14);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #f4f7f4;
}

body { min-height: 100vh; }

button, input, select { font: inherit; }

button { cursor: pointer; }

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

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 43% 57%;
    background: var(--white);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 52px 58px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 15%, rgba(227,153,20,.25), transparent 22%),
        linear-gradient(145deg, #07571A 0%, #043b12 100%);
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -250px;
    bottom: -220px;
    border: 1px solid rgba(227,153,20,.45);
    border-radius: 50%;
}

.brand, .mobile-brand, .brand-centered {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {

}

.brand strong {
    display: block;
    font-size: 14px;
    letter-spacing: .8px;
}

.brand span {
    display: block;
    font-size: 13px;
    opacity: .78;
    margin-top: 3px;
}

.brand-message {
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-message h1 {
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.04;
    margin: 18px 0;
}

.brand-message p {
    max-width: 430px;
    line-height: 1.8;
    color: rgba(255,255,255,.78);
}

.feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 17px;
}

.feature-list > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list b {
    color: var(--gold);
    border: 1px solid rgba(227,153,20,.65);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.feature-list span {
    font-size: 12px;
    color: rgba(255,255,255,.68);
}

.feature-list strong {
    display: block;
    color: white;
    margin-bottom: 3px;
    font-size: 14px;
}

.panel-footer {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    position: relative;
    z-index: 1;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 7%;
    background: #fff;
}

.form-heading {
    text-align: center;
    margin-bottom: 30px;
}

.form-heading.left { text-align: left; }

.gold-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--green);
    border: 4px solid #eef5ef;
    box-shadow: 0 0 0 1px var(--gold);
    display: grid;
    place-items: center;
}

.form-heading h2 {
    margin: 0;
    font-size: 31px;
    color: var(--green);
    letter-spacing: -.5px;
}

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

label:not(.check) {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 17px 0 8px;
}

.input-wrap {
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #fff;
    transition: .2s ease;
}

.input-wrap:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(7,87,26,.08);
}

.input-wrap > span {
    width: 25px;
    color: var(--green);
    opacity: .75;
}

.input-wrap input,
.input-wrap select {
    flex: 1;
    border: 0;
    outline: 0;
    min-width: 0;
    color: var(--text);
    background: transparent;
}

.input-wrap input::placeholder { color: #a1a8a3; }

.toggle-password {
    border: 0;
    background: transparent;
    color: var(--green);
    opacity: .65;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 17px 0 24px;
    font-size: 12px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555e58;
    cursor: pointer;
}

.check input {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
}

.primary-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: white;
    font-weight: 800;
    letter-spacing: .2px;
    transition: .2s ease;
    box-shadow: 0 9px 20px rgba(7,87,26,.16);
}

.primary-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.primary-btn span {
    margin-left: 8px;
    color: var(--gold);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8b938d;
    font-size: 12px;
    margin: 26px 0 18px;
}

.divider::before, .divider::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}

.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    color: #333;
    font-weight: 700;
}

.social-btn span { margin-left: 7px; font-weight: 600; }

.bottom-text {
    text-align: center;
    font-size: 13px;
    color: #68706a;
    margin-top: 27px;
}

.alert {
    padding: 12px 14px;
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.6;
}

.alert.success {
    background: #edf8f0;
    color: var(--green);
    border: 1px solid #cde6d2;
}

.alert.error {
    background: #fff0f0;
    color: var(--danger);
    border: 1px solid #f0caca;
}

.mobile-brand { display: none; }

.signup-shell {
    grid-template-columns: 57% 43%;
}

.signup-form-panel { order: 1; }
.signup-panel { order: 2; }

.signup-container { width: min(560px, 100%); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.hint {
    display: block;
    color: #89908b;
    font-size: 10px;
    margin-top: 5px;
}

.select-wrap select {
    appearance: auto;
}

.terms {
    margin: 18px 0 22px;
    line-height: 1.6;
    align-items: flex-start;
}

.quote-block {
    position: relative;
    z-index: 1;
    max-width: 350px;
}

.quote-mark {
    color: var(--gold);
    font-size: 72px;
    line-height: .5;
    display: block;
}

.quote-block h2 {
    font-size: 34px;
    line-height: 1.15;
    margin: 25px 0 15px;
}

.quote-block p {
    color: rgba(255,255,255,.68);
    font-size: 13px;
}

.legacy {
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.8);
    font-size: 12px;
    line-height: 1.6;
}

.legacy b {
    color: var(--gold);
    font-size: 34px;
}

.simple-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #f4f7f4, #edf3ee);
}

.simple-card {
    width: min(450px, 100%);
    padding: 42px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.brand-centered {
    justify-content: center;
    margin-bottom: 38px;
    color: var(--green);
}

@media (max-width: 950px) {
    .auth-shell, .signup-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 35px 22px;
    }

    .mobile-brand {
        display: flex;
        position: absolute;
        top: 24px;
        left: 24px;
        color: var(--green);
        font-size: 11px;
        line-height: 1.3;
    }

    .mobile-brand .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 10px;
    }

    .form-container {
        padding-top: 60px;
    }
}

@media (max-width: 520px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row {
        align-items: flex-start;
        gap: 12px;
    }

    .social-row {
        grid-template-columns: 1fr;
    }

    .simple-card {
        padding: 28px 20px;
    }
}

