/* ===========================================================================
   Login pages (admin + customer) – split screen: green brand panel, white form.
   =========================================================================== */
:root {
    --au-green: #15803d; --au-green-dark: #116932; --au-green-soft: #e9f6ec; --au-green-line: #cfe9d7;
    --au-ink: #0f172a; --au-text: #1e293b; --au-muted: #64748b; --au-line: #dbe2ea; --au-bg: #f7faf8;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.au-body { margin: 0; font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--au-bg); color: var(--au-text); -webkit-font-smoothing: antialiased; }

.au-wrap { display: flex; min-height: 100vh; }

/* ---------- brand panel ---------- */
.au-brand { flex: 0 0 46%; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; color: #fff; background: linear-gradient(160deg, #15803d 0%, #1f9a4b 55%, #4cb866 100%); }
.au-brand::before, .au-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.au-brand::before { width: 420px; height: 420px; right: -140px; top: -160px; }
.au-brand::after { width: 320px; height: 320px; left: -120px; bottom: -140px; }
.au-brand > * { position: relative; z-index: 1; }
.au-logo { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.au-logo img { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.au-brand h1 { margin: 0 0 14px; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.au-brand p.lead { margin: 0 0 30px; font-size: 17px; line-height: 1.6; opacity: .95; max-width: 460px; }
.au-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.au-points li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 600; }
.au-points span.ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.au-points svg { width: 22px; height: 22px; }
.au-foot { font-size: 13.5px; opacity: .8; }

/* ---------- form panel ---------- */
.au-form { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.au-card { width: 100%; max-width: 440px; }
.au-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--au-green-soft); color: var(--au-green); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.au-card h2 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--au-ink); }
.au-card .sub { margin: 0 0 26px; font-size: 15.5px; color: var(--au-muted); }
.au-field { margin-bottom: 18px; position: relative; }
.au-field label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 700; color: var(--au-ink); }
.au-field .au-input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1px solid var(--au-line); border-radius: 12px; font: inherit; font-size: 15.5px; color: var(--au-ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.au-field .au-input::placeholder { color: #9aa3b2; }
.au-field .au-input:focus { outline: none; border-color: var(--au-green); box-shadow: 0 0 0 4px rgba(21, 128, 61, .12); }
.au-field .au-icon { position: absolute; left: 15px; bottom: 14px; width: 22px; height: 22px; color: #94a3b8; pointer-events: none; }
.au-field .toggle-password { position: absolute; right: 14px; bottom: 15px; width: 22px; height: 22px; color: #94a3b8; cursor: pointer; display: grid; place-items: center; }
.au-field .toggle-password:hover { color: var(--au-green); }
.au-field.is-otp .au-input { padding-left: 16px; letter-spacing: .5em; font-size: 24px; font-weight: 800; text-align: center; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 20px; font-size: 14px; }
.au-check { display: inline-flex; align-items: center; gap: 8px; color: var(--au-text); cursor: pointer; margin: 0; }
.au-check input { width: 17px; height: 17px; accent-color: var(--au-green); margin: 0; }
.au-link { color: var(--au-green); font-weight: 700; text-decoration: none; }
.au-link:hover { color: var(--au-green-dark); text-decoration: underline; }
.au-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--au-green); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.au-btn:hover { background: var(--au-green-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(21, 128, 61, .25); }
.au-btn svg { width: 20px; height: 20px; }
.au-btn.is-ghost { background: #fff; color: var(--au-ink); border: 1px solid var(--au-line); box-shadow: none; }
.au-btn.is-ghost:hover { background: #f6f8f7; transform: none; }
.au-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--au-green-soft); border: 1px solid var(--au-green-line); color: #166534; font-size: 14px; line-height: 1.5; }
.au-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.au-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.au-alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.au-alert.is-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.au-alert.is-success { background: var(--au-green-soft); border: 1px solid var(--au-green-line); color: #166534; }
.au-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13px; font-weight: 700; color: var(--au-muted); }
.au-steps span { display: inline-flex; align-items: center; gap: 6px; }
.au-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #e6eaf0; color: var(--au-muted); }
.au-steps span.is-on { color: var(--au-green); }
.au-steps span.is-on b, .au-steps span.is-done b { background: var(--au-green); color: #fff; }
.au-steps i { flex: 1; height: 2px; background: #e6eaf0; border-radius: 2px; }
.au-help { margin-top: 26px; text-align: center; font-size: 14px; color: var(--au-muted); }
.au-help a { color: var(--au-green); font-weight: 700; text-decoration: none; }
.au-small { font-size: 13.5px; color: var(--au-muted); margin-top: 8px; }
.au-otp-timer { margin: -4px 0 18px; font-variant-numeric: tabular-nums; }
.au-otp-resend { margin-top: 14px; }
.au-otp-resend[hidden] { display: none !important; }
.au-resend-btn { width: 100%; padding: 12px; border: 1px solid var(--au-green); border-radius: 12px; background: #fff; color: var(--au-green); font: inherit; font-weight: 800; cursor: pointer; }
.au-btn:disabled { opacity: .5; cursor: not-allowed; }

/* hide the browser's own password eye */
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }
input[type="password"]::-webkit-credentials-auto-fill-button, input[type="password"]::-webkit-password-toggle-button { display: none !important; }

@media (max-width: 991px) {
    .au-wrap { flex-direction: column; }
    .au-brand { flex: none; padding: 24px 22px 26px; }
    .au-logo { margin-bottom: 18px; font-size: 21px; }
    .au-brand h1 { font-size: 28px; }
    .au-brand p.lead { font-size: 15px; margin-bottom: 18px; }
    .au-points { display: none; }
    .au-foot { display: none; }
    .au-form { padding: 28px 18px 40px; }
    .au-card h2 { font-size: 26px; }
}

/* ---------- simple variant: image panel + plain form ---------- */
.au-img { flex: 0 0 48%; display: flex; align-items: center; justify-content: center; padding: 48px; background: #fff; border-right: 1px solid #e6eaf0; }
.au-img img { display: block; width: 100%; max-width: 520px; max-height: 70vh; object-fit: contain; }
.au-form.is-simple { padding: 32px 24px; }
.au-top { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--au-green); text-decoration: none; }
.au-top img { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--au-green-line); padding: 3px; }
@media (max-width: 991px) { .au-img { flex: none; padding: 24px; } .au-img img { max-width: 260px; max-height: 220px; } }
