/* ============================================================
   Auth Pages — Modern Design
   Login / Reset Password / Request Access
   ============================================================ */

:root {
    --auth-brand: #87b26d;
    --auth-brand-dark: #6a9054;
    --auth-brand-light: #f0f7ec;
    --auth-bg: #f0f3f7;
    --auth-card-bg: #ffffff;
    --auth-text: #2d3748;
    --auth-muted: #718096;
    --auth-border: #e2e8f0;
    --auth-radius: 12px;
    --auth-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    --auth-input-radius: 8px;
    --auth-sidebar-bg: #1e2a38;
}

/* ============================================================ RESET */
* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    padding: 0;
    background: var(--auth-bg);
    font-family: "Almarai", "Inter", "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ============================================================ SPLIT LAYOUT */
.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* LEFT: Branded panel */
.auth-sidebar {
    width: 42%;
    background: var(--auth-sidebar-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Background decoration */
.auth-sidebar::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(135,178,109,0.07);
    top: -120px; right: -140px;
    pointer-events: none;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(113,127,172,0.06);
    bottom: -80px; left: -60px;
    pointer-events: none;
}

.auth-sidebar-logo {
    position: relative;
    z-index: 1;
}

.auth-sidebar-logo img {
    max-height: 52px;
    max-width: 240px;
    object-fit: contain;
        border-radius: 5px;
}

.auth-sidebar-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-sidebar-tagline {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.auth-sidebar-desc {
    font-size: 14.5px;
    color: rgba(200, 215, 230, 0.75);
    line-height: 1.7;
    max-width: 340px;
}

.auth-sidebar-features {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-sidebar-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(200,215,230,0.8);
}

.auth-feature-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--auth-brand);
    flex-shrink: 0;
}

.auth-sidebar-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(200,215,230,0.4);
}

/* RIGHT: Form panel */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--auth-bg);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-card-header {
    margin-bottom: 32px;
}

.auth-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 6px;
}

.auth-card-subtitle {
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================ FORM OVERRIDES FOR AUTH */
.auth-form .form-label,
.auth-form label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 6px !important;
    display: block;
}

.auth-form .form-control,
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form select,
.auth-form textarea {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--auth-border) !important;
    border-radius: var(--auth-input-radius) !important;
    font-size: 14px !important;
    color: var(--auth-text) !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
    transition: border-color 0.18s, box-shadow 0.18s !important;
}

.auth-form .form-control:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--auth-brand) !important;
    box-shadow: 0 0 0 4px rgba(135,178,109,0.14) !important;
    outline: none !important;
}

.auth-form .form-group,
.auth-form .control-group {
    margin-bottom: 20px !important;
}

/* Input with icon prefix */
.auth-input-group {
    position: relative;
}

.auth-input-group .auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 14px;
    pointer-events: none;
}

.auth-input-group input,
.auth-form .auth-input-group input,
.auth-form .auth-input-group .form-control,
.auth-input-group .auth-input {
    padding-left: 40px !important;
}

/* Password eye toggle — shared between login and wizard */
.pass-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: #a0aec0;
    font-size: 15px;
    line-height: 1;
    transition: color 0.15s;
    z-index: 2;
}
.pass-eye-btn:hover { color: var(--auth-text); }
.pass-eye-btn:focus { outline: none; }

/* When eye button is present, give the input right padding */
.auth-input-group .pass-eye-btn ~ * input,
.auth-input-group:has(.pass-eye-btn) input {
    padding-right: 40px !important;
}

/* Wrapper used in wizard (injected by JS) */
.pass-input-wrap {
    position: relative;
    display: block;
}
.pass-input-wrap input {
    padding-right: 40px !important;
}

/* Submit button */
.auth-btn {
    width: 100%;
    height: 46px;
    background: var(--auth-brand);
    color: #fff;
    border: none;
    border-radius: var(--auth-input-radius);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(135,178,109,0.30);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.auth-btn:hover {
    background: var(--auth-brand-dark);
    box-shadow: 0 4px 14px rgba(135,178,109,0.40);
    color: #fff;
    text-decoration: none;
}

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

.auth-btn:focus {
    outline: 2px solid var(--auth-brand);
    outline-offset: 2px;
}

/* Admin button (old class) */
.admin_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    background: var(--auth-brand);
    color: #fff !important;
    border: none;
    border-radius: var(--auth-input-radius);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(135,178,109,0.30);
    text-decoration: none;
    width: 100%;
    letter-spacing: 0.01em;
}

.admin_button_large { height: 48px; font-size: 15px; }

.admin_button:hover, .admin_button_large:hover {
    background: var(--auth-brand-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(135,178,109,0.40);
}

/* Form links */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}

.auth-links a, .back-link a {
    color: var(--auth-brand);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
}

.auth-links a:hover, .back-link a:hover {
    color: var(--auth-brand-dark);
    text-decoration: underline;
}

.back-link {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--auth-muted);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #b0bec5;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* Flash messages on auth pages */
.auth-card .message,
.auth-card .alert {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    font-size: 13.5px !important;
    border: none !important;
}

.auth-card .alert-success, .auth-card .message.success {
    background: #f0fff4; color: #276749; border-left: 4px solid #48bb78;
}

.auth-card .alert-error, .auth-card .alert-danger, .auth-card .message.error {
    background: #fff5f5; color: #c53030; border-left: 4px solid #fc8181;
}

/* "OR" divider in reset */
.or-reset {
    text-align: center;
    padding: 8px 0 14px;
    font-size: 12px;
    font-weight: 600;
    color: #a0aec0;
    letter-spacing: 0.08em;
}

/* ============================================================ LOGIN TITLE (h2) */
#login-container h2,
.auth-card h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--auth-text) !important;
    margin: 0 0 6px !important;
    border: none !important;
    text-align: left;
}

/* ============================================================ LOGO IN LOGIN */
#login-container h1 {
    text-align: center;
    margin-bottom: 24px;
}

#login-container h1 img {
    max-width: 220px;
    height: auto;
}

/* ============================================================ MULTI-STEP WIZARD (request login)
   jquery.steps.min.css is loaded first — we override with !important where needed            */

/* Reset jQuery Steps defaults */
.wizard,
.wizard.clearfix {
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;   /* jquery.steps sets overflow:hidden — must override */
    background: transparent !important;
}

/* ── Step tabs ── */
.wizard > .steps { position: relative; display: block; width: 100%; }

.wizard > .steps > ul {
    display: flex !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px !important;
    border-bottom: 2px solid var(--auth-border) !important;
    float: none !important;
    width: 100% !important;
    overflow: visible !important;
}

.wizard > .steps > ul > li {
    flex: 1 !important;
    float: none !important;
    width: auto !important;
    display: block !important;
    padding: 0 !important;
}

/* Override jQuery Steps' coloured pill links */
.wizard > .steps a,
.wizard > .steps a:hover,
.wizard > .steps a:active {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px 16px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--auth-muted) !important;
    background: transparent !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    border-bottom: 3px solid transparent !important;
    margin: 0 0 -2px !important;
    transition: color 0.18s, border-color 0.18s !important;
}

/* Step number bubble */
.wizard > .steps a .number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: var(--auth-border) !important;
    color: var(--auth-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    transition: background 0.2s, color 0.2s !important;
    line-height: 1 !important;
}

/* Current step */
.wizard > .steps .current a,
.wizard > .steps .current a:hover,
.wizard > .steps .current a:active {
    color: var(--auth-brand) !important;
    background: transparent !important;
    border-bottom-color: var(--auth-brand) !important;
    font-weight: 600 !important;
    cursor: default !important;
}
.wizard > .steps .current a .number {
    background: var(--auth-brand) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(135,178,109,0.35) !important;
}

/* Done step — checkmark */
.wizard > .steps .done a,
.wizard > .steps .done a:hover,
.wizard > .steps .done a:active {
    color: #38a169 !important;
    background: transparent !important;
    border-bottom-color: #38a169 !important;
}
.wizard > .steps .done a .number {
    background: #38a169 !important;
    color: #fff !important;
    font-size: 0 !important;
    position: relative !important;
    box-shadow: none !important;
}
.wizard > .steps .done a .number::after {
    content: "\f00c";
    font-family: FontAwesome;
    font-size: 11px;
    color: #fff;
}

/* Disabled step */
.wizard > .steps .disabled a,
.wizard > .steps .disabled a:hover,
.wizard > .steps .disabled a:active {
    background: transparent !important;
    color: var(--auth-muted) !important;
    pointer-events: none !important;
    opacity: 0.45 !important;
    cursor: default !important;
}

/* Error step */
.wizard > .steps .error a,
.wizard > .steps .error a:hover {
    background: transparent !important;
    color: #e53e3e !important;
    border-bottom-color: #e53e3e !important;
}
.wizard > .steps .error a .number {
    background: #e53e3e !important;
    color: #fff !important;
}

/* ── Content area ── */
.wizard > .content {
    min-height: 220px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    border-radius: 0 !important;
}
.wizard > .content > .body {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    position: relative !important;
}
/* jQuery Steps hides inactive sections */
.wizard > .content > .body.current { display: block !important; }

/* ── Actions (Prev / Next / Submit) ── */
.wizard > .actions {
    position: relative !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding-top: 24px !important;
    margin-top: 8px !important;
    border-top: 1px solid var(--auth-border) !important;
    width: 100% !important;
    text-align: right !important;
}

.wizard > .actions > ul {
    display: inline-flex !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: right !important;
}

.wizard > .actions > ul > li {
    float: none !important;
    margin: 0 !important;
    /* no display override — jQuery Steps uses .show()/.hide() to toggle Next vs Finish */
}

/* All action links */
.wizard > .actions a,
.wizard > .actions a:hover,
.wizard > .actions a:active {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s !important;
    line-height: 1 !important;
}

/* Primary action (Next / Submit / last li) */
.wizard > .actions a {
    background: var(--auth-brand) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(135,178,109,0.25) !important;
}
.wizard > .actions a:hover {
    background: var(--auth-brand-dark) !important;
    box-shadow: 0 4px 14px rgba(135,178,109,0.4) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}
.wizard > .actions a:active { transform: translateY(0) !important; }

/* Previous button (first li) — ghost */
.wizard > .actions > ul > li.first a,
.wizard > .actions > ul > li:first-child a {
    background: transparent !important;
    color: var(--auth-muted) !important;
    border: 1.5px solid var(--auth-border) !important;
    box-shadow: none !important;
}
.wizard > .actions > ul > li.first a:hover,
.wizard > .actions > ul > li:first-child a:hover {
    background: var(--auth-border) !important;
    color: var(--auth-text) !important;
    transform: none !important;
}

/* Disabled state */
.wizard > .actions .disabled a,
.wizard > .actions .disabled a:hover,
.wizard > .actions .disabled a:active {
    background: #f0f3f7 !important;
    color: #c0cad8 !important;
    border: 1.5px solid #e8ecf1 !important;
    box-shadow: none !important;
    pointer-events: none !important;
    transform: none !important;
    cursor: default !important;
}

/* ============================================================ AUTH CARD POLISH */
.auth-card {
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 40px 40px 36px;
    animation: authFadeIn 0.35s ease both;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================ REGISTRATION FORM SPACING */
/* Two-column inline name row */
.full-name-inline {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.full-name-inline > div,
.full-name-inline > .form-group,
.full-name-inline > .control-group { flex: 1; margin-bottom: 0 !important; }

/* Field wrappers */
.auth-form .form-group,
.auth-form .control-group,
#wizard .form-group,
#wizard .control-group { margin-bottom: 18px !important; }

/* Fieldsets inside wizard */
#wizard fieldset { margin: 0 0 18px !important; padding: 18px 20px 14px !important; border: 1.5px solid var(--auth-border) !important; border-radius: var(--auth-radius) !important; background: #fafbfd !important; }
#wizard fieldset legend { font-size: 11px !important; font-weight: 700 !important; color: var(--auth-muted) !important; text-transform: uppercase !important; letter-spacing: 0.7px !important; padding: 0 6px !important; background: #fff !important; }

/* Input fields inside wizard */
#wizard input[type="text"],
#wizard input[type="email"],
#wizard input[type="password"],
#wizard input[type="number"],
#wizard select,
#wizard textarea {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--auth-border) !important;
    border-radius: var(--auth-input-radius) !important;
    font-size: 14px !important;
    color: var(--auth-text) !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
    transition: border-color 0.18s, box-shadow 0.18s !important;
    box-sizing: border-box !important;
}
#wizard textarea { height: auto !important; min-height: 90px !important; }
#wizard input:focus, #wizard select:focus, #wizard textarea:focus {
    border-color: var(--auth-brand) !important;
    box-shadow: 0 0 0 4px rgba(135,178,109,0.14) !important;
    outline: none !important;
}
#wizard label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 5px !important;
    display: block;
}

/* Wizard container */
#wizard { border: none !important; box-shadow: none !important; }

/* ============================================================ REQUEST LOGIN — WIDE LAYOUT */
.auth-main.auth-main--wide {
    max-width: none;
    align-items: flex-start;
    padding: 48px 40px;
}
.auth-main.auth-main--wide .auth-card.auth-card--wide {
    max-width: 720px;
    width: 100%;
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 40px 44px 36px;
    animation: authFadeIn 0.35s ease both;
}

/* ============================================================ COMPANY SEARCH AUTOCOMPLETE */
.autocomplete_container { position: relative; }
.autocomplete_container .input.text { margin-bottom: 18px !important; }
.autocomplete_container .autocomplete_input {
    padding-right: 40px !important;
}
.autocomplete_container .autocomplete_icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 18px;
    height: 18px;
    opacity: 0.45;
    pointer-events: none;
}
.autocomplete_container .autocomplete_box {
    position: absolute;
    top: calc(100% - 4px);
    left: 0; right: 0;
    z-index: 200;
    background: var(--auth-card-bg);
    border: 1.5px solid var(--auth-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}
.autocomplete_container .loader {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================================ EXTRA FIELDS SECTION */
#extraFields {
    margin-top: 4px !important;
}
#extraFields > .input.checkbox {
    background: #f8fafb;
    border: 1.5px solid var(--auth-border);
    border-radius: 8px;
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
    transition: background 0.15s, border-color 0.15s;
}
#extraFields > .input.checkbox:hover {
    background: var(--auth-brand-light);
    border-color: var(--auth-brand);
}
#extraFields > fieldset {
    margin-top: 8px !important;
}

/* CakePHP Form->control() generates a div.input wrapper with class from field name */
#wizard .input { margin-bottom: 18px !important; }
#wizard .input.checkbox { display: flex; align-items: center; gap: 10px; }
#wizard .input.checkbox label { margin-bottom: 0 !important; font-weight: 500 !important; }
#wizard .input.checkbox input[type="checkbox"] { width: 18px !important; height: 18px !important; min-height: auto !important; flex-shrink: 0; }

/* .w-48 override (used in full-name-inline) */
.w-48 { width: 100% !important; }

/* Back link */
.back-link { margin-top: 20px !important; }

@media (max-width: 480px) {
    .auth-card { padding: 24px 18px 20px; }
    .auth-main.auth-main--wide .auth-card.auth-card--wide { padding: 24px 18px 20px; }
    .full-name-inline { flex-direction: column; gap: 0; }
    .wizard > .steps ul li a { padding: 10px 10px 14px; gap: 7px; font-size: 12.5px; }
}

@media (max-width: 700px) {
    .auth-main.auth-main--wide { padding: 24px 16px; }
    .auth-main.auth-main--wide .auth-card.auth-card--wide { padding: 28px 20px 24px; }
}

/* Input error state */
.auth-form .has-error input,
.auth-form .control-group.error input {
    border-color: #fc8181 !important;
    box-shadow: 0 0 0 3px rgba(252,129,129,0.14) !important;
}
.auth-form .has-error label,
.auth-form .control-group.error label { color: #e53e3e !important; }
.auth-form .error-message, .auth-form .help-block { font-size: 12px; color: #e53e3e; margin-top: 4px; }

/* jQuery Validate error labels inside wizard */
#wizard label.error,
.auth-card label.error {
    display: block !important;
    color: #e53e3e !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
}
#wizard input.error,
#wizard select.error,
#wizard textarea.error {
    border-color: #fc8181 !important;
    box-shadow: 0 0 0 3px rgba(252,129,129,0.14) !important;
}

/* Flash messages */
.auth-card .message, .auth-card .alert {
    border-radius: 9px !important;
    padding: 12px 16px 12px 42px !important;
    position: relative;
    font-size: 13.5px !important;
}
.auth-card .message::before, .auth-card .alert::before {
    font-family: FontAwesome; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
}
.auth-card .alert-success::before, .auth-card .message.success::before { content: "\f058"; color: #48bb78; }
.auth-card .alert-error::before, .auth-card .alert-danger::before, .auth-card .message.error::before { content: "\f057"; color: #fc8181; }
.auth-card .alert-info::before, .auth-card .message.info::before { content: "\f05a"; color: #63b3ed; }

/* Smooth sidebar entrance decoration */
.auth-sidebar { background: linear-gradient(160deg, #1e2a38 0%, #162130 100%); }

/* ============================================================ ANIMATED ILLUSTRATION */
.auth-illustration {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 300px;
    height: 280px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}
[dir="rtl"] .auth-illustration, html[lang="ar"] .auth-illustration { right: auto; left: -20px; }

.auth-illus-svg { width: 100%; height: 100%; }

/* Rotating outer rings */
@keyframes illusRing1 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes illusRing2 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
@keyframes illusFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes illusBarGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes illusOrbit1 {
    from { transform: rotate(0deg) translateX(90px) rotate(0deg); transform-origin: 160px 140px; }
    to   { transform: rotate(360deg) translateX(90px) rotate(-360deg); transform-origin: 160px 140px; }
}
@keyframes illusFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes illusPulse {
    0%, 100% { opacity: 0.7; r: 5; }
    50%       { opacity: 1;   r: 7; }
}

.illus-ring-1 {
    transform-origin: 160px 140px;
    animation: illusRing1 18s linear infinite;
}
.illus-ring-2 {
    transform-origin: 160px 140px;
    animation: illusRing2 12s linear infinite;
}
.illus-ring-3 {
    animation: illusFloat 4s ease-in-out infinite;
}
.illus-leaf-1 { animation: illusFloat 5s ease-in-out infinite; }
.illus-leaf-2 { animation: illusFloat 6s ease-in-out 0.8s infinite; }

.illus-bar-1 { animation: illusBarGrow 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.2s both; }
.illus-bar-2 { animation: illusBarGrow 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.35s both; }
.illus-bar-3 { animation: illusBarGrow 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.5s both; }
.illus-bar-4 { animation: illusBarGrow 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.65s both; }

.illus-orbit-1 { animation: illusPulse 3s ease-in-out infinite; }
.illus-orbit-2 { animation: illusPulse 3s ease-in-out 0.75s infinite; }
.illus-orbit-3 { animation: illusPulse 3s ease-in-out 1.5s infinite; }
.illus-orbit-4 { animation: illusPulse 3s ease-in-out 2.25s infinite; }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
    .auth-sidebar { display: none; }
    body.auth-page { background: var(--auth-bg); }
    .auth-main { padding: 32px 20px; }
}

@media (max-width: 480px) {
    .auth-card { max-width: 100%; }
    .auth-main { padding: 24px 16px; }
}

/* ============================================================ RTL */
[dir="rtl"] .auth-wrapper, html[lang="ar"] .auth-wrapper { flex-direction: row-reverse; }
[dir="rtl"] .auth-input-group .auth-input-icon, html[lang="ar"] .auth-input-group .auth-input-icon { left: auto; right: 14px; }
[dir="rtl"] .auth-input-group input, html[lang="ar"] .auth-input-group input { padding-left: 14px !important; padding-right: 40px !important; }

/* ============================================================ LANDING PAGE (esg layout) */

/* Full-width page body — no auth split panel */
body.lp-page {
    background: #f7f9fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.lp-navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.lp-navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.lp-navbar-brand { display: flex; align-items: center; text-decoration: none; }
.lp-navbar-logo  { height: 38px; width: auto; }
.lp-navbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-navbar-right .btn { font-size: 13px !important; padding: 7px 16px !important; border-radius: 8px !important; }

/* Main content area */
.lp-main-full {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 32px 56px;
}

/* Footer */
.lp-footer-full {
    background: #1a202c;
    color: #a0aec0;
    padding: 32px 0;
    margin-top: auto;
}
.lp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.lp-footer-brand { flex: 1 1 220px; }
.lp-footer-logo  { height: 32px; width: auto; margin-bottom: 10px; opacity: 0.85; border-radius: 5px; }
.lp-footer-brand p { font-size: 12px; color: #718096; margin: 0; line-height: 1.6; }
.lp-footer-links { display: flex; flex-direction: column; gap: 8px; }
.lp-footer-links a { color: #a0aec0; font-size: 13px; text-decoration: none; transition: color 0.18s; }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-social { display: flex; gap: 14px; align-items: center; }
.lp-footer-social a { color: #718096; font-size: 18px; transition: color 0.18s; text-decoration: none; }
.lp-footer-social a:hover { color: var(--auth-brand); }

/* ---- Hero section ---- */
.lp-hero {
    padding: 12px 0 28px;
    animation: authFadeIn 0.45s ease both;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(135,178,109,0.12);
    color: var(--auth-brand);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}
.lp-hero-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    line-height: 1.25 !important;
    margin: 0 0 12px !important;
}
.lp-hero-sub {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 24px;
}
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-hero-actions .btn { padding: 11px 22px !important; font-size: 14px !important; border-radius: 9px !important; }

/* ---- Feature cards ---- */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    animation: authFadeIn 0.45s ease 0.1s both;
}
.lp-feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: authFadeIn 0.4s ease both;
}
.lp-feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.lp-feature-card:nth-child(1) { animation-delay: 0.05s; }
.lp-feature-card:nth-child(2) { animation-delay: 0.10s; }
.lp-feature-card:nth-child(3) { animation-delay: 0.15s; }
.lp-feature-card:nth-child(4) { animation-delay: 0.20s; }
.lp-feature-card:nth-child(5) { animation-delay: 0.25s; }
.lp-feature-card:nth-child(6) { animation-delay: 0.30s; }

.lp-feature-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.lp-feature-icon--green  { background: rgba(135,178,109,0.12); color: #6a9054; }
.lp-feature-icon--blue   { background: rgba(49,130,206,0.10);  color: #3182ce; }
.lp-feature-icon--teal   { background: rgba(49,151,149,0.10);  color: #319795; }
.lp-feature-icon--purple { background: rgba(128,90,213,0.10);  color: #805ad5; }
.lp-feature-icon--orange { background: rgba(221,107,32,0.10);  color: #dd6b20; }

.lp-feature-body h4 { font-size: 13.5px !important; font-weight: 700 !important; color: #1a202c !important; margin: 0 0 5px !important; }
.lp-feature-body p  { font-size: 12.5px; color: #718096; line-height: 1.55; margin: 0; }

/* ---- Stats row ---- */
.lp-stats-row {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 4px;
    animation: authFadeIn 0.45s ease 0.2s both;
}
.lp-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    border-right: 1px solid #f0f0f0;
}
.lp-stat:last-child { border-right: none; }
.lp-stat-num  { font-size: 28px; font-weight: 800; color: var(--auth-brand); line-height: 1; }
.lp-stat-label{ font-size: 11.5px; color: #718096; margin-top: 5px; font-weight: 500; }

/* ---- Consultation page ---- */
.lp-consult-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    animation: authFadeIn 0.4s ease 0.08s both;
}
.lp-consult-form-wrap { flex: 1 1 380px; }
.lp-consult-contact {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.lp-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.lp-contact-label { font-size: 11px; font-weight: 700; color: #a0aec0; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.lp-contact-value { font-size: 13px; color: #2d3748; line-height: 1.6; }
.lp-contact-value a { color: var(--auth-brand); text-decoration: none; }
.lp-contact-value a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 1140px) {
    .lp-navbar-inner, .lp-main-full, .lp-footer-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 900px) {
    .lp-features-grid { grid-template-columns: 1fr 1fr; }
    .lp-stats-row { flex-wrap: wrap; }
    .lp-stat { flex: 0 0 50%; border-bottom: 1px solid #f0f0f0; }
    .lp-main-full { padding-top: 28px; padding-bottom: 36px; }
    .lp-footer-inner { flex-direction: column; gap: 24px; }
}
@media (max-width: 700px) {
    .lp-consult-contact { flex: 0 0 100%; }
}
@media (max-width: 540px) {
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-hero-title { font-size: 22px !important; }
    .lp-stat { flex: 0 0 100%; border-bottom: 1px solid #f0f0f0; }
    .lp-stat:last-child { border-bottom: none; }
    .lp-navbar-inner { height: 54px; }
}

/* ---- RTL landing ---- */
[dir="rtl"] .lp-navbar-inner { flex-direction: row-reverse; }
[dir="rtl"] .lp-navbar-right { flex-direction: row-reverse; }
[dir="rtl"] .lp-hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .lp-feature-card { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .lp-footer-inner { flex-direction: row-reverse; }
[dir="rtl"] .lp-contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .lp-stat:last-child { border-right: 1px solid #f0f0f0; border-left: none; }
[dir="rtl"] .lp-stat:first-child { border-left: none; border-right: none; }
