:root {
    --auth-brand-dark: #10291c;
    --auth-green: #2c7645;
    --auth-green-dark: #205b35;
    --auth-ink: #1d2b22;
    --auth-muted: #667269;
    --auth-line: #d7dfd6;
    --auth-soft: #f6f8f4;
    --auth-danger: #c53b3b;
}

* { box-sizing: border-box; }

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

body.auth-page {
    min-height: 100vh;
    background: var(--auth-soft);
    color: var(--auth-ink);
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-brand-panel {
    display: flex;
    min-width: 470px;
    padding: 48px;
    border-right: 4px solid #9ec94d;
    background: var(--auth-brand-dark);
    flex: 1 1 58%;
    align-items: center;
    justify-content: center;
}

.auth-brand-panel .auth-brand-logo {
    width: 280px;
}

.auth-access-panel {
    display: flex;
    width: min(620px, 42%);
    min-width: 500px;
    padding: 48px clamp(52px, 5vw, 82px);
    background: #fff;
    align-items: center;
    justify-content: center;
}

.card.card-container.auth-component-form {
    width: 100%;
    max-width: 420px;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    transition: none;
}

.auth-login-brand {
    display: none;
    margin-bottom: 34px;
    padding: 13px 16px;
    border-radius: 9px;
    background: var(--auth-brand-dark);
    align-items: center;
    justify-content: center;
}

.auth-brand-logo {
    display: block;
    width: 184px;
    max-width: 100%;
    height: auto;
}

.auth-view-header { margin-bottom: 34px; }
.auth-view-header-centered { text-align: center; }

.auth-view-header h2 {
    margin: 0;
    color: var(--auth-ink);
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.auth-view-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth-view-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 12px;
    color: var(--auth-green);
    background: #f1f6eb;
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

.auth-field { margin-bottom: 20px; }

.auth-field > label {
    display: block;
    margin: 0 0 8px;
    color: #34453a;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.item-login {
    position: relative;
    margin-bottom: 0;
}

.item-login .form-control {
    width: 100%;
    height: 50px;
    padding: 11px 14px 11px 44px;
    border: 1px solid var(--auth-line);
    border-radius: 7px;
    color: var(--auth-ink);
    background: #fff;
    box-shadow: none;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 26px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.item-login .form-control::placeholder { color: #8d998f; }
.item-login .form-control:hover { border-color: #b8c5b7; }

.item-login .form-control:focus {
    border-color: var(--auth-green);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(44, 118, 69, .12);
}

.auth-field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    width: 16px;
    color: #879389;
    font-size: 14px;
    text-align: center;
    transform: translateY(-50%);
    transition: color .18s ease;
}

.item-login:focus-within .auth-field-icon { color: var(--auth-green); }

.auth-captcha {
    margin: 3px 0 18px;
    display: flex;
    justify-content: center;
}

.auth-captcha .cf-turnstile { width: 100%; }

.auth-options,
.auth-secondary-actions,
.auth-inline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-options {
    min-height: 24px;
    margin: 3px 0 24px;
}

.auth-save-option {
    display: inline-flex;
    min-width: 0;
    color: var(--auth-muted);
    align-items: center;
    gap: 8px;
}

.auth-save-option label {
    margin: 0;
    color: var(--auth-muted);
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.auth-save-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-green);
    cursor: pointer;
    flex: 0 0 auto;
}

.auth-options a,
.auth-secondary-actions a,
.auth-inline-actions a {
    color: var(--auth-green);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.auth-options a:hover,
.auth-options a:focus,
.auth-secondary-actions a:hover,
.auth-secondary-actions a:focus,
.auth-inline-actions a:hover,
.auth-inline-actions a:focus {
    color: var(--auth-green-dark);
    text-decoration: underline;
}

.auth-submit .btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid var(--auth-green);
    border-radius: 7px;
    color: #fff;
    background: var(--auth-green);
    box-shadow: none;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    transition: background .18s ease, border-color .18s ease, transform .08s ease;
}

.auth-submit .btn:hover,
.auth-submit .btn:focus {
    border-color: var(--auth-green-dark);
    outline: 0;
    color: #fff;
    background: var(--auth-green-dark);
}

.auth-submit .btn:active { transform: translateY(1px); }

.auth-submit .btn .fa-arrow-right,
.auth-submit .btn .fa-check {
    margin-left: 8px;
    font-size: 11px;
}

.auth-submit .btn.btn-danger {
    border-color: var(--auth-danger);
    background: var(--auth-danger);
}

.auth-submit .btn.btn-warning {
    border-color: #b7791f;
    background: #b7791f;
}

.auth-divider {
    display: flex;
    margin: -3px 0 17px;
    color: #9aa8b4;
    font-size: 10px;
    align-items: center;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    background: #e5ebef;
    content: "";
    flex: 1;
}

.auth-divider span { padding: 0 11px; }

.auth-secondary-actions,
.auth-inline-actions { margin-top: 22px; }
.auth-secondary-actions-single { justify-content: flex-start; }

.auth-code-input {
    text-transform: uppercase;
    letter-spacing: .22em;
}

.auth-component-forgot-login,
.auth-component-forgot-email { color: var(--auth-ink) !important; }

.auth-component-forgot-reset {
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.auth-component-forgot-reset h2 {
    margin: 8px 0;
    color: var(--auth-green);
    font-size: 28px;
}

.main-hidden { display: none; }

@media (max-width: 980px) {
    .auth-shell {
        padding: 32px;
        align-items: center;
        justify-content: center;
    }

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

    .auth-access-panel {
        width: 100%;
        min-width: 0;
        padding: 0;
        background: transparent;
    }

    .card.card-container.auth-component-form {
        max-width: 420px;
        padding: 36px;
        border: 1px solid #dfe5dc;
        border-radius: 12px;
        background: #fff;
    }

    .auth-login-brand { display: flex; }
}

@media (max-width: 480px) {
    .auth-shell {
        padding: 0;
        background: #fff;
    }

    .auth-access-panel {
        padding: 24px 20px;
        align-items: flex-start;
    }

    .card.card-container.auth-component-form {
        max-width: 100%;
        padding: 12px 0 28px;
        border: 0;
        border-radius: 0;
    }

    .auth-login-brand { margin-bottom: 32px; }
    .auth-view-header { margin-bottom: 28px; }
    .auth-view-header h2 { font-size: 27px; }

    .auth-options,
    .auth-secondary-actions,
    .auth-inline-actions {
        gap: 14px;
        flex-wrap: wrap;
    }

    .auth-options { align-items: flex-start; }

    .auth-secondary-actions,
    .auth-inline-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .item-login .form-control,
    .auth-submit .btn { transition: none; }
}
