/* WBG CUSTOMER ORDER PORTAL - LOGIN, SIGNUP AND FORGOT PASSWORD PAGES
   Full-screen split: white form on the left, charcoal panel with a fuel gauge on the right (approved 2026-10-30).
   Message pages (registration result, failed login ...) keep one centred card on the charcoal background. */
:root {
    --brand: #2f8a4a;          /* WBG green (from the logo) */
    --brand-dark: #1f6b37;
    --brand-bright: #6cc070;
    --brand-light: #e8f3ec;
    --charcoal: #26292d;
    --charcoal-2: #33373c;
    --charcoal-text: #c9ced2;
}
html, body { height: 100%; }
body.auth-body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0; color: #1f2328;
    background:
        radial-gradient(900px 500px at 105% 110%, rgba(47, 138, 74, 0.35), transparent 60%),
        radial-gradient(700px 420px at -10% -20%, rgba(47, 138, 74, 0.18), transparent 60%),
        var(--charcoal);
}
a { text-decoration: none; }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; position: relative; }

/* SPLIT PAGES: THE BOX FILLS THE SCREEN */
.auth-wrap.split, .auth-wrap:has(> .auth-box:not(.msg)) { padding: 0; align-items: stretch; }
.auth-box:not(.msg) { flex: 1; width: 100%; min-height: 100vh; display: flex; background: #fff; }

/* LEFT: THE FORM */
.auth-box:not(.msg) .auth-form { order: 1; flex: 0 0 44%; padding: 40px 72px 96px; display: flex; flex-direction: column; justify-content: center; }
.auth-box:not(.msg) .auth-form > * { max-width: 400px; width: 100%; }
.auth-form .logo { display: block; height: 74px; width: auto; margin: 0 0 26px; }
.auth-form h2 { font-size: 27px; font-weight: 700; margin: 0 0 6px; color: #1f2328; }
.auth-form .sub { font-size: 14.5px; color: #6b7280; margin: 0 0 22px; }
.auth-form label { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 4px; }
.auth-form .form-control { height: 48px; font-size: 15px; border: 0; border-bottom: 2px solid #d9dde1; background: #f3f4f5; border-radius: 4px 4px 0 0; box-shadow: none; }
.auth-form .form-control:focus { border-bottom-color: var(--brand); background: #eef6f0; box-shadow: none; }
.auth-form .input-group-text { background: #f3f4f5; border: 0; border-bottom: 2px solid #d9dde1; color: #7a8288; border-radius: 0; }
.auth-form .input-group-prepend .input-group-text { border-radius: 4px 0 0 0; padding-left: 15px; }
.auth-form .input-group-append .input-group-text { border-radius: 0 4px 0 0; cursor: pointer; }
.auth-form .input-group:focus-within .input-group-text { border-bottom-color: var(--brand); background: #eef6f0; }
.auth-form .input-group .form-control { border-radius: 0; }
.auth-form .input-group .form-control:first-child { border-radius: 4px 0 0 0; }
.auth-form .input-group .form-control:last-child { border-radius: 0 4px 0 0; }
.auth-form select.form-control { padding-left: 12px; }
.auth-form .alert { font-size: 14px; border-radius: 8px; }
.auth-form .code-input { font-size: 22px; letter-spacing: 6px; text-align: center; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.btn-brand { background: linear-gradient(90deg, var(--brand), #3fa35c); border: 0; color: #fff; height: 48px; border-radius: 6px; font-weight: 700; letter-spacing: .05em; box-shadow: 0 6px 18px rgba(47, 138, 74, .28); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-brand i { margin-left: 8px; }
.btn-charcoal { background: var(--charcoal); border-color: var(--charcoal); color: #fff; border-radius: 6px; font-weight: 600; }
.btn-charcoal:hover { background: #000; color: #fff; }
.btn-outline-charcoal { color: var(--charcoal); border: 1px solid #c4c9cd; border-radius: 6px; font-weight: 600; background: #fff; }
.btn-outline-charcoal:hover { border-color: var(--charcoal); color: var(--charcoal); background: #f3f4f5; }

.auth-link { font-size: 13px; color: var(--brand); font-weight: 600; }
.auth-link:hover { color: var(--brand-dark); }
.back-link { display: inline-block; font-size: 13px; color: #6c757d; margin-top: 14px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.newc { margin-top: 18px; font-size: 14px; color: #4b5563; }
.newc a { color: var(--brand); font-weight: 700; }
.divider { display: flex; align-items: center; color: #9aa1a6; font-size: 12px; margin: 18px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #e3e6e8; }
.divider::before { margin-right: 10px; } .divider::after { margin-left: 10px; }

/* RIGHT: CHARCOAL PANEL WITH A FUEL GAUGE READING FULL */
.auth-box:not(.msg) .auth-info {
    order: 2; flex: 1; position: relative; overflow: hidden; color: #fff;
    padding: 40px 56px 40px 72px; display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(135deg, #2b3035 0%, #1b1e21 60%, #121416 100%);
}
.auth-box:not(.msg) .auth-info::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 192, 112, .28), transparent 65%); }
.auth-box:not(.msg) .auth-info::after {
    content: ""; position: absolute; width: min(520px, 36vw); height: min(520px, 36vw); right: -6vw; bottom: max(-16vw, -220px); opacity: .6; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%232f8a4a'/%3E%3Cstop offset='1' stop-color='%236cc070'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M60 300 A160 160 0 1 1 340 300' stroke='rgba(255,255,255,.10)' stroke-width='26'/%3E%3Cpath d='M60 300 A160 160 0 1 1 340 300' stroke='url(%23g)' stroke-width='26' stroke-dasharray='560 1000'/%3E%3Cg stroke='rgba(255,255,255,.35)' stroke-width='4'%3E%3Cpath d='M88 268l18-10'/%3E%3Cpath d='M200 70v22'/%3E%3Cpath d='M312 268l-18-10'/%3E%3C/g%3E%3Cpath d='M200 230 L300 140' stroke='%23fff' stroke-width='7'/%3E%3C/g%3E%3Ccircle cx='200' cy='230' r='16' fill='%236cc070'/%3E%3Ctext x='74' y='330' fill='rgba(255,255,255,.55)' font-size='26' font-weight='700' font-family='Arial'%3EE%3C/text%3E%3Ctext x='312' y='330' fill='%236cc070' font-size='26' font-weight='700' font-family='Arial'%3EF%3C/text%3E%3C/svg%3E") no-repeat center / contain;
}
.auth-info > * { position: relative; z-index: 1; max-width: 600px; }
.auth-info .logo-light { display: none; }
.auth-info .eyebrow { font-size: 12.5px; letter-spacing: .2em; font-weight: 700; color: var(--brand-bright); margin-bottom: 12px; text-transform: uppercase; }
.auth-info h1 { font-size: 38px; font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
.auth-info h1 em { font-style: normal; color: var(--brand-bright); }
.auth-info .lead { font-size: 16px; color: var(--charcoal-text); line-height: 1.6; margin: 0 0 24px; }
.auth-info ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 14px; }
.auth-info li { flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 16px; font-size: 12.5px; color: #b5bbc0; line-height: 1.45; }
.auth-info li > i, .auth-info li .num { display: flex; align-items: center; justify-content: center; color: var(--brand-bright); font-size: 21px; margin-bottom: 12px; font-style: normal; }
.auth-info li .num { width: 30px; height: 30px; border-radius: 50%; background: rgba(108, 192, 112, .18); font-size: 14px; font-weight: 700; }
.auth-info li > i { justify-content: flex-start; }
.auth-info li b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 5px; }
.auth-info .cta { display: inline-flex; align-items: center; gap: 14px; background: linear-gradient(90deg, var(--brand), #3fa35c); border-radius: 8px; padding: 12px 20px; color: #fff; align-self: flex-start; }
.auth-info .cta i { font-size: 20px; }
.auth-info .cta small { display: block; font-size: 10.5px; letter-spacing: .14em; opacity: .85; }
.auth-info .cta b { font-size: 16px; }
.auth-info .help { font-size: 13px; color: #9aa1a6; margin: 0; }
.auth-info .help a { color: var(--brand-bright); font-weight: 600; }

/* LEGAL LINE: BOTTOM OF THE FORM SIDE */
.legal { font-size: 11px; color: #8d959b; text-align: center; margin-top: 18px; line-height: 1.55; }
.legal a { color: #b7d9c0; }
.auth-box:not(.msg) ~ .legal { position: absolute; left: 72px; bottom: 20px; width: calc(44% - 144px); text-align: left; margin: 0; color: #8a9097; }
.auth-box:not(.msg) ~ .legal a { color: #8a9097; }

/* SIGNUP: WIDER FORM WITH TWO COLUMNS OF FIELDS */
.auth-box.wide .auth-form { flex-basis: 60%; padding: 28px 56px 80px; }
.auth-box.wide .auth-form > * { max-width: 760px; }
.auth-box.wide ~ .legal { left: 56px; width: calc(60% - 112px); }
.auth-box.wide .auth-form .logo { height: 54px; margin-bottom: 14px; }
.auth-box.wide .auth-form h2 { font-size: 22px; }
.auth-box.wide .auth-form .form-control { height: 40px; }
.auth-box.wide .auth-form .input-group-text { padding-top: 0; padding-bottom: 0; }
.auth-box.wide .auth-form .form-group { margin-bottom: 12px; }
.auth-box.wide .form-row > .form-group { padding-left: 8px; padding-right: 8px; }
.auth-box.wide .auth-info { padding: 40px 40px 40px 48px; }
.auth-box.wide .auth-info h1 { font-size: 32px; }
.auth-box.wide .auth-info ul { flex-direction: column; gap: 10px; }
.auth-box.wide .auth-info li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.auth-box.wide .auth-info li .num { margin: 0; flex: 0 0 30px; }
.pw-rules { font-size: 12px; color: #6c757d; margin: 0 0 12px; }
.auth-box.wide .btn-brand, .auth-box.wide .btn-outline-charcoal { height: 42px; }

/* SHORT SCREENS */
@media (max-height: 760px) {
    .auth-box:not(.msg) .auth-form { padding-top: 24px; padding-bottom: 76px; }
    .auth-form .logo { height: 62px; margin-bottom: 18px; }
    .auth-form .sub { margin-bottom: 16px; }
    .auth-form .form-group { margin-bottom: 12px; }
    .auth-info h1 { font-size: 33px; }
    .auth-info .lead { margin-bottom: 18px; }
    .auth-info li { padding: 12px 14px; }
    .auth-info li > i { margin-bottom: 8px; }
    .auth-box.wide .auth-form { padding-top: 16px; padding-bottom: 60px; }
    .auth-box.wide .auth-form .logo { height: 44px; margin-bottom: 8px; }
    .auth-box.wide .auth-form .form-group { margin-bottom: 8px; }
    .auth-box.wide .auth-form .form-control { height: 36px; }
    .auth-box.wide .auth-info h1 { font-size: 27px; }
    .auth-box:not(.msg) ~ .legal { bottom: 12px; }
}

/* PHONES AND SMALL TABLETS: FORM FIRST, PANEL UNDER IT */
@media (max-width: 900px) {
    .auth-box:not(.msg) { flex-direction: column; }
    .auth-box:not(.msg) .auth-form, .auth-box.wide .auth-form { flex: none; padding: 28px 20px 24px; }
    .auth-box:not(.msg) .auth-info, .auth-box.wide .auth-info { flex: none; padding: 32px 20px; }
    .auth-box:not(.msg) .auth-info::after { display: none; }
    .auth-info h1, .auth-box.wide .auth-info h1 { font-size: 27px; }
    .auth-info ul { flex-direction: column; gap: 10px; }
    .auth-box:not(.msg) ~ .legal, .auth-box.wide ~ .legal { position: static; width: auto; padding: 0 20px 20px; background: #fff; margin: 0; }
    .auth-wrap.split, .auth-wrap:has(> .auth-box:not(.msg)) { background: #fff; }
}

/* ONE-MESSAGE PAGES (registration result, failed login ...) */
.auth-box.msg { width: 100%; max-width: 520px; text-align: center; border-top: 4px solid var(--brand); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.auth-box.msg .auth-form { display: block; }
.auth-box.msg .msg-logo { display: block; height: auto; }
.auth-box.msg.fail { border-top-color: #c0392b; }
.auth-box.msg .auth-form { padding: 32px 36px 28px; }
.auth-box.msg h2::after { margin: 10px auto 0; }
.auth-box.msg p { font-size: 15px; color: #555; margin: 12px 0 0; }
.msg-logo { width: 130px; margin: 0 auto 18px; }
.msg-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--brand-light); color: var(--brand-dark); }
.auth-box.msg.fail .msg-icon { background: #fdecea; color: #c0392b; }
.msg-actions { margin-top: 22px; }
.msg-actions .btn { min-width: 160px; height: 44px; }
@media (max-width: 767.98px) { .auth-box.msg { border-top: 0; } .auth-box.msg .auth-form { padding: 32px 20px; } .msg-actions .btn { width: 100%; } }
.msg-actions .btn { display: inline-flex; align-items: center; justify-content: center; }
.auth-box:not(.msg) .auth-form > .logo { width: auto; max-width: 100%; align-self: flex-start; }
.auth-box:not(.msg) ~ .legal { width: calc(44% - 96px); }
.auth-box.wide ~ .legal { width: calc(60% - 80px); }
@media (max-width: 900px) { .auth-box:not(.msg) ~ .legal, .auth-box.wide ~ .legal { width: auto; } .auth-form .logo { height: 60px; } }
