/* Customer Theme Styles */
.customer-layout {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.customer-header { background: #3a0ca3; color: #fff; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.customer-header a { color: #fff; text-decoration: none; margin-left: 1rem; }
.customer-main { flex: 1; padding: 1.5rem; background: #f8f9fa; }
.customer-footer { background: #3a0ca3; color: #fff; text-align: center; padding: 1rem; }

/* Scoped customer authentication system */
.customer-auth-page {
    --auth-primary: #3a0ca3;
    --auth-primary-dark: #2b087d;
    --auth-ink: #172033;
    --auth-muted: #6b7280;
    --auth-border: #e6e8ef;
    --auth-surface: #fff;
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background: #f7f8fc;
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
}

.customer-auth-page *, .customer-auth-page *::before, .customer-auth-page *::after { box-sizing: border-box; }
.customer-auth-shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.customer-auth-shell::before, .customer-auth-shell::after { content: ''; position: fixed; z-index: 0; border-radius: 999px; pointer-events: none; filter: blur(2px); }
.customer-auth-shell::before { width: 360px; height: 360px; top: -170px; right: -100px; background: rgba(58, 12, 163, .07); }
.customer-auth-shell::after { width: 300px; height: 300px; bottom: -150px; left: -100px; background: rgba(58, 12, 163, .05); }
.customer-auth-topbar, .customer-auth-main, .customer-auth-footer { position: relative; z-index: 1; }
.customer-auth-topbar { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; }
.customer-auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--auth-primary); text-decoration: none; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.customer-auth-brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; }
.customer-auth-home { color: var(--auth-muted); font-size: .85rem; text-decoration: none; }
.customer-auth-home:hover, .customer-auth-link:hover { color: var(--auth-primary); }
.customer-auth-main { flex: 1; display: grid; place-items: center; padding: 20px 20px 48px; }
.customer-auth-card { width: min(100%, 470px); padding: clamp(28px, 5vw, 46px); background: rgba(255,255,255,.96); border: 1px solid rgba(230,232,239,.9); border-radius: 22px; box-shadow: 0 24px 70px rgba(31, 25, 71, .10); }
.customer-auth-heading { margin: 0; color: var(--auth-ink); font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.04em; }
.customer-auth-subtitle { margin: 10px 0 28px; color: var(--auth-muted); font-size: .95rem; line-height: 1.6; }
.customer-auth-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--auth-primary); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.customer-auth-eyebrow i { font-size: 1rem; }
.customer-auth-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fff7f7; color: #b42318; font-size: .85rem; line-height: 1.45; }
.customer-auth-alert.success { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.customer-auth-field { margin-bottom: 18px; }
.customer-auth-label { display: block; margin-bottom: 8px; color: #30384b; font-size: .82rem; font-weight: 700; }
.customer-auth-required { color: #b42318; }
.customer-auth-control { position: relative; }
.customer-auth-control > i { position: absolute; z-index: 1; left: 15px; top: 50%; transform: translateY(-50%); color: #98a0b3; font-size: 1.05rem; pointer-events: none; }
.customer-auth-input { width: 100%; min-height: 50px; padding: 13px 15px 13px 44px; border: 1px solid var(--auth-border); border-radius: 12px; outline: 0; background: #fff; color: var(--auth-ink); font: inherit; font-size: .9rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.customer-auth-input::placeholder { color: #a8adba; }
.customer-auth-input:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(58,12,163,.10); }
.customer-auth-input.has-action { padding-right: 48px; }
.customer-auth-control .customer-auth-toggle { position: absolute; right: 7px; top: 7px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #7a8292; cursor: pointer; }
.customer-auth-toggle:hover, .customer-auth-toggle:focus-visible { color: var(--auth-primary); background: #f1effa; outline: none; }
.customer-auth-help { margin: 7px 0 0; color: var(--auth-muted); font-size: .75rem; line-height: 1.45; }
.customer-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 22px; }
.customer-auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-muted); font-size: .8rem; cursor: pointer; }
.customer-auth-check input { width: 16px; height: 16px; accent-color: var(--auth-primary); }
.customer-auth-link { color: var(--auth-primary); font-size: .82rem; font-weight: 700; text-decoration: none; }
.customer-auth-button { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--auth-primary); border-radius: 12px; background: var(--auth-primary); color: #fff; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.customer-auth-button:hover { background: var(--auth-primary-dark); box-shadow: 0 10px 22px rgba(58,12,163,.2); transform: translateY(-1px); }
.customer-auth-button:focus-visible { outline: 3px solid rgba(58,12,163,.22); outline-offset: 2px; }
.customer-auth-button:disabled { opacity: .7; cursor: wait; transform: none; box-shadow: none; }
.customer-auth-button .auth-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.customer-auth-button.is-loading .auth-spinner { display: inline-block; }
.customer-auth-button.is-loading .auth-button-label { opacity: .8; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.customer-auth-tabs { display: flex; gap: 5px; margin: 0 0 28px; padding: 4px; border: 1px solid var(--auth-border); border-radius: 14px; background: #f7f7fb; }
.customer-auth-tab { flex: 1; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; color: var(--auth-muted); background: transparent; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.customer-auth-tab i { margin-right: 4px; font-size: .95rem; vertical-align: -1px; }
.customer-auth-tab:hover { color: var(--auth-primary); }
.customer-auth-tab.is-active { color: var(--auth-primary); background: #fff; box-shadow: 0 3px 10px rgba(31, 25, 71, .08); }
.customer-auth-tab:focus-visible { outline: 3px solid rgba(58,12,163,.18); outline-offset: 1px; }
.customer-auth-method-panel { display: none; animation: auth-panel-in .2s ease-out; }
.customer-auth-method-panel.is-active { display: block; }
@keyframes auth-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.customer-auth-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 18px; color: #a0a6b3; font-size: .75rem; }
.customer-auth-divider::before, .customer-auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--auth-border); }
.customer-auth-socials { display: flex; justify-content: center; gap: 10px; }
.customer-auth-social { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--auth-border); border-radius: 11px; color: #556070; background: #fff; text-decoration: none; }
.customer-auth-social:hover { border-color: var(--auth-primary); color: var(--auth-primary); }
.customer-auth-switch { margin: 25px 0 0; text-align: center; color: var(--auth-muted); font-size: .84rem; }
.customer-auth-footer { padding: 0 20px 26px; color: #9299a8; font-size: .72rem; text-align: center; }
.customer-auth-footer a { color: inherit; text-decoration: none; }
.customer-auth-footer a:hover { color: var(--auth-primary); }
.customer-auth-footer-links { display: inline-flex; gap: 14px; margin-top: 7px; }
.customer-auth-otp { display: flex; gap: 8px; margin: 6px 0 20px; }
.customer-auth-otp input { width: 100%; min-width: 0; height: 54px; border: 1px solid var(--auth-border); border-radius: 11px; outline: 0; color: var(--auth-ink); background: #fff; text-align: center; font: inherit; font-size: 1.2rem; font-weight: 800; }
.customer-auth-otp input:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(58,12,163,.1); }
.customer-auth-otp input.is-invalid { border-color: #dc2626; }
.customer-auth-code-meta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 16px 0 22px; color: var(--auth-muted); font-size: .8rem; text-align: center; }
.customer-auth-code-actions { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; }
.customer-auth-countdown { color: var(--auth-muted); white-space: nowrap; }
.customer-auth-resend { padding: 4px 0; border: 0; background: transparent; color: var(--auth-primary); font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.customer-auth-resend:hover:not(:disabled), .customer-auth-resend:focus-visible { color: var(--auth-primary-dark); text-decoration: underline; }
.customer-auth-resend:disabled { color: #a8adba; cursor: not-allowed; }
.customer-auth-change-email { color: var(--auth-primary); font-weight: 700; text-decoration: none; }
.customer-auth-change-email:hover { text-decoration: underline; }
.customer-auth-strength { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--auth-muted); font-size: .72rem; }
.customer-auth-strength-bar { height: 4px; flex: 1; overflow: hidden; border-radius: 4px; background: #e9ebf1; }
.customer-auth-strength-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #ef4444; transition: width .2s, background .2s; }
@media (max-width: 520px) {
    .customer-auth-topbar { width: calc(100% - 32px); padding: 18px 0; }
    .customer-auth-main { padding: 12px 12px 32px; align-items: start; }
    .customer-auth-card { padding: 28px 20px; border-radius: 18px; }
    .customer-auth-footer { padding-bottom: 18px; }
    .customer-auth-otp { gap: 6px; }
    .customer-auth-otp input { height: 48px; font-size: 1rem; }
}
@media (max-width: 350px) { .customer-auth-home { display: none; } .customer-auth-card { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .customer-auth-page *, .customer-auth-page *::before, .customer-auth-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
