/* Customer auth v2 — aurora mesh + glass-card direction. Self-contained
   (no external fonts/icons, CSP-safe: no inline style="" anywhere relies on
   this file, only classes). */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; min-height: 100%; overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
}
body { background: #f5f6fa; }
a { text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
svg { display: block; max-width: 100%; }

.auth-layout { display: flex; flex-direction: column; min-height: 100dvh; width: 100%; }
.form-panel { order: 1; flex: 1 0 auto; min-width: 0; display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 1rem; background: #f5f6fa; }
.brand-panel { display: none; }

@media (min-width: 1024px) {
  .auth-layout { flex-direction: row; }
  .form-panel { order: 2; width: 54%; align-items: center; padding: 3rem; min-height: 100vh; }
  .brand-panel {
    order: 1; width: 46%; min-height: 100vh; display: flex; flex-direction: column;
    justify-content: flex-start; gap: 2.5rem; padding: 3rem; position: relative; overflow: hidden;
    background: #05070a;
  }
  .brand-bottom { margin-top: auto; padding-top: 2rem; }
}

/* Aurora mesh background */
.aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aurora-orb.emerald { width: 22rem; height: 22rem; top: -6rem; left: -4rem; background: #10b981; }
.aurora-orb.cyan { width: 18rem; height: 18rem; top: 12rem; right: -6rem; background: #22d3ee; opacity: .35; }
.aurora-orb.violet { width: 20rem; height: 20rem; bottom: -8rem; left: 4rem; background: #8b5cf6; opacity: .35; }
.aurora-dots {
  position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 22px 22px;
}
.aurora-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #05070a 100%); }

.brand-top, .brand-middle, .brand-bottom { position: relative; z-index: 1; }

.brand-logo-row { display: flex; align-items: center; gap: 1rem; }
.brand-logo-box {
  width: 3rem; height: 3rem; border-radius: 1rem; background: linear-gradient(135deg, #34d399, #06b6d4);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(16,185,129,.35);
}
.brand-logo-box img { width: 1.85rem; height: 1.85rem; filter: brightness(0) invert(1); }
.brand-name { color: #fff; font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; margin: 0; }
.brand-tagline { color: #5eead4; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin: .2rem 0 0; }

.feature-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: 100px; padding: 7px 14px;
  color: #a7f3d0; font-size: .78rem; font-weight: 700; backdrop-filter: blur(8px);
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 900; color: #fff; line-height: 1.14; margin: 1.25rem 0 1rem; letter-spacing: -.02em; }
.hero-title .accent { display: block; background: linear-gradient(90deg, #34d399, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #94a3b8; font-size: 1.02rem; line-height: 1.6; max-width: 25rem; margin: 0 0 2rem; }

/* Floating glass product mockup */
.mockup-stage { position: relative; padding: 1.5rem 0 2.5rem; max-width: 23rem; }
.mockup-card {
  position: relative; z-index: 2; padding: 1.25rem; border-radius: 1.25rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px); box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.mockup-card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-dot.one { background: #f87171; }
.mockup-dot.two { background: #fbbf24; }
.mockup-dot.three { background: #34d399; }
.mockup-card-title { margin: 0 0 0 .35rem; color: #e2e8f0; font-size: .78rem; font-weight: 700; }

.mockup-chart { display: flex; align-items: flex-end; gap: .55rem; height: 5.5rem; margin-bottom: 1.1rem; padding-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.mockup-bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5eead4, #10b981); opacity: .9; }
.mockup-bar:nth-child(1) { height: 42%; }
.mockup-bar:nth-child(2) { height: 68%; }
.mockup-bar:nth-child(3) { height: 50%; }
.mockup-bar:nth-child(4) { height: 92%; opacity: 1; }
.mockup-bar:nth-child(5) { height: 74%; }
.mockup-bar:nth-child(6) { height: 58%; }

.mockup-row { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; }
.mockup-row-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex-shrink: 0; }
.mockup-row-line { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); }
.mockup-row-value { color: #6ee7b7; font-size: .74rem; font-weight: 800; flex-shrink: 0; }

.mockup-chip {
  position: absolute; z-index: 3; right: -.5rem; bottom: .5rem; display: flex; align-items: center; gap: .5rem;
  padding: .65rem .9rem; border-radius: 1rem; background: rgba(5,7,10,.85); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.mockup-chip-icon { width: 1.9rem; height: 1.9rem; border-radius: .65rem; background: linear-gradient(135deg, #34d399, #06b6d4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mockup-chip-icon svg { width: 1rem; height: 1rem; color: #05070a; }
.mockup-chip-value { color: #fff; font-weight: 900; font-size: .92rem; line-height: 1; margin: 0; }
.mockup-chip-label { color: #94a3b8; font-size: .64rem; font-weight: 700; margin: .15rem 0 0; }

.testimonial-card {
  margin-top: 2.25rem; padding: 1.35rem 1.5rem; border-radius: 1.1rem; max-width: 25rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px);
}
.testimonial-quote { color: #e2e8f0; font-size: .92rem; line-height: 1.6; margin: 0 0 1.1rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; background: linear-gradient(135deg, #34d399, #06b6d4);
  display: flex; align-items: center; justify-content: center; color: #05070a; font-weight: 800; font-size: .74rem; flex-shrink: 0;
}
.testimonial-name { color: #fff; font-weight: 800; font-size: .82rem; margin: 0; }
.testimonial-role { color: #94a3b8; font-size: .72rem; margin: .1rem 0 0; }

.trust-row { margin-top: 2.25rem; max-width: 25rem; }
.trust-label { display: block; color: #64748b; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.trust-badge { padding: .45rem .8rem; border-radius: .65rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #cbd5e1; font-size: .74rem; font-weight: 700; }

.brand-footer-note { color: #475569; font-size: .74rem; margin: 0; }

/* Form side */
.login-card { width: 100%; max-width: 448px; min-width: 0; margin: 0 auto; }
.login-card *, .dashboard-card * { min-width: 0; }

.mobile-hero { display: block; padding: .5rem .25rem 1.5rem; }
.mobile-hero-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-logo { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg,#34d399,#06b6d4); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(16,185,129,.35); flex-shrink: 0; }
.mobile-logo img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.mobile-hero-row > div:last-child { min-width: 0; }
.mobile-brand-name { color: #0f172a; font-weight: 900; font-size: .95rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-brand-sub { color: #0891b2; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: .15rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form-card-frame { padding: 2px; border-radius: 1.9rem; background: linear-gradient(150deg, rgba(16,185,129,.35), rgba(34,211,238,.1) 40%, rgba(255,255,255,0) 70%); }
.form-card { padding: 2rem; border-radius: 1.85rem; background: #fff; box-shadow: 0 30px 70px rgba(15,23,42,.08); }

.form-header { margin-bottom: 1.75rem; }
.form-header h1 { font-size: 1.6rem; font-weight: 900; color: #0f172a; margin: 0 0 .4rem; letter-spacing: -.02em; }
.form-header p { color: #64748b; font-size: .92rem; margin: 0; }

.auth-social { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: 100%; margin-bottom: 1.35rem; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-width: 0;
  padding: 13px; border: 1.5px solid #e7e9f2; border-radius: 1rem; background: #fbfbfe;
  color: #374151; font-weight: 700; font-size: .875rem; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.social-btn:hover { border-color: #cbd5e1; background: #fff; transform: translateY(-1px); }
.social-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-icon { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .74rem; color: #fff; flex-shrink: 0; }
.social-icon.google { background: #4285f4; }
.social-icon.facebook { background: #1877f2; }

.divider { display: flex; align-items: center; gap: 12px; color: #a3a7b8; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.35rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #edeef5; }

.error-banner, .success-banner { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 1rem; margin-bottom: 1.35rem; }
.error-banner { background: #fef2f2; border: 1px solid #fecaca; }
.success-banner { background: #ecfdf5; border: 1px solid #a7f3d0; }
.error-banner svg { color: #ef4444; width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin-top: .1rem; }
.success-banner svg { color: #10b981; width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin-top: .1rem; }
.error-banner p, .success-banner p { margin: 0; min-width: 0; font-size: .85rem; font-weight: 600; overflow-wrap: break-word; }
.error-banner p { color: #b91c1c; }
.success-banner p { color: #047857; }

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 480px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.field-hint { margin: -.5rem 0 0; color: #94a3b8; font-size: .76rem; }
.login-card.wide { max-width: 560px; }

.field-group { position: relative; }
.field-group input {
  width: 100%; padding: 18px 48px 8px 18px; background: #fbfbfe; border: 1.5px solid #e7e9f2;
  border-radius: 1rem; font-size: max(.95rem, 16px); color: #0f172a; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; font-family: inherit;
}
.field-group input::placeholder { color: transparent; }
.field-group label {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: .875rem; font-weight: 600; pointer-events: none; transition: all .2s ease;
}
.field-group input:focus, .field-group input:not(:placeholder-shown) { padding-top: 22px; padding-bottom: 6px; }
.field-group input:focus ~ label, .field-group input:not(:placeholder-shown) ~ label {
  top: 10px; transform: none; font-size: .7rem; color: #10b981; letter-spacing: .04em; text-transform: uppercase;
}
.field-group input:focus { background: #fff; border-color: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
.field-group input.error { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
.field-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8;
  cursor: pointer; transition: color .2s; background: none; border: none; padding: 4px; display: flex; align-items: center;
}
.field-icon svg { width: 1.15rem; height: 1.15rem; }
.field-icon:hover { color: #0f172a; }
.field-icon svg.is-hidden { display: none; }

.login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.remember-check { display: inline-flex; align-items: center; gap: .55rem; color: #475569; font-size: .85rem; font-weight: 700; cursor: pointer; user-select: none; }
.remember-check input {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: 0 0 18px;
  border: 1.5px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.remember-check input:checked { background: #10b981; border-color: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
.forgot-link { color: #059669; font-size: .85rem; font-weight: 800; transition: color .2s; }
.forgot-link:hover { color: #047857; }

.submit-btn {
  width: 100%; padding: 15px; border: none; border-radius: 1rem;
  background: linear-gradient(120deg, #10b981, #0891b2); color: #fff; font-weight: 800;
  font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 12px 30px rgba(16,185,129,.32); transition: all .2s; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover { box-shadow: 0 16px 36px rgba(16,185,129,.4); transform: translateY(-1px); }
.submit-btn svg { width: 1.1rem; height: 1.1rem; }

.card-footer { margin-top: 1.5rem; padding: 1.1rem; border-radius: 1rem; background: #fbfbfe; border: 1.5px solid #e7e9f2; text-align: center; }
.card-footer p { margin: 0; color: #64748b; font-size: .85rem; }
.card-footer a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; color: #059669; font-weight: 800; font-size: .9rem; }
.card-footer a svg { width: 1rem; height: 1rem; }

.dashboard-page { min-height: 100dvh; background: #f5f6fa; }

.dashboard-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; background: #fff; border-bottom: 1px solid #e7e9f2;
}
.dashboard-topbar .brand-logo-row { gap: .7rem; }
.dashboard-topbar .brand-logo-box { width: 2.3rem; height: 2.3rem; border-radius: .75rem; }
.dashboard-topbar .brand-logo-box img { width: 1.35rem; height: 1.35rem; }
.brand-name-dark { color: #0f172a; font-weight: 900; font-size: 1rem; margin: 0; letter-spacing: -.01em; }
.dashboard-logout-btn {
  padding: .6rem 1.1rem; border: 1.5px solid #e7e9f2; border-radius: .8rem; background: #fbfbfe;
  color: #334155; font-weight: 800; font-size: .82rem; cursor: pointer; transition: all .2s; font-family: inherit;
}
.dashboard-logout-btn:hover { border-color: #cbd5e1; background: #fff; }

.dashboard-main { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }

.account-hero { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; }
.account-avatar {
  width: 3.75rem; height: 3.75rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #34d399, #0891b2); color: #05070a;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.4rem;
}
.account-hero h1 { font-size: 1.5rem; font-weight: 900; color: #0f172a; margin: 0 0 .25rem; letter-spacing: -.01em; }
.account-hero p { color: #64748b; font-size: .92rem; margin: 0; }

.account-card { padding: 1.75rem; border-radius: 1.5rem; background: #fff; border: 1px solid #e7e9f2; box-shadow: 0 24px 60px rgba(15,23,42,.05); margin-bottom: 1.25rem; }
.account-card h2 { font-size: .95rem; font-weight: 800; color: #0f172a; margin: 0 0 1.25rem; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 560px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.account-field { display: flex; flex-direction: column; gap: .3rem; }
.account-label { color: #94a3b8; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.account-value { color: #0f172a; font-size: .92rem; font-weight: 600; overflow-wrap: break-word; }

.account-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-secondary {
  padding: .85rem 1.3rem; border: 1.5px solid #e7e9f2; border-radius: 1rem;
  background: #fff; color: #334155; font-weight: 800; font-size: .88rem; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.btn-secondary:hover { border-color: #cbd5e1; background: #fbfbfe; }

.mobile-only { display: block; }
@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
}

/* Shown while an admin is signed in as this customer via "Login as user". */
.impersonation-banner { display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.7rem 1.5rem;background:#0f172a;color:#e2e8f0;font-size:.9rem; }
.impersonation-banner p { margin:0;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap; }
.impersonation-banner strong { padding:.2rem .55rem;border-radius:.4rem;background:#28c76f;color:#000;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase; }
.impersonation-banner form { margin:0; }
.impersonation-back { padding:.45rem .9rem;border:1px solid #28c76f;border-radius:.55rem;background:transparent;color:#fff;font:inherit;font-weight:600;cursor:pointer; }
.impersonation-back:hover { background:#28c76f;color:#000; }
.impersonation-back:focus-visible { outline:3px solid #85c443;outline-offset:2px; }
