/* iaipediu Auth — login / acesso / cadastro / entregador (full-page premium) */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --au-ink: #0b1220;
  --au-ink-soft: #1e293b;
  --au-muted: #64748b;
  --au-line: rgba(15, 23, 42, .10);
  --au-brand: #e11d48;
  --au-brand-2: #f97316;
  --au-ok: #059669;
  --au-surface: #ffffff;
  --au-font: 'IBM Plex Sans', system-ui, sans-serif;
  --au-display: 'Sora', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.au-body {
  font-family: var(--au-font);
  color: var(--au-ink);
  background: #0b1220;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

/* FULL VIEWPORT SPLIT */
.au-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 1fr);
  background: #fff;
}
.au-aside {
  position: relative;
  color: #fff;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(225,29,72,.95) 0%, rgba(159,18,57,.92) 42%, rgba(11,18,32,.96) 100%),
    url('https://images.unsplash.com/photo-1556740749-887f6717d7e4?auto=format&fit=crop&w=1400&q=70') center/cover;
}
.au-aside::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 320px at 85% 15%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(180deg, transparent 40%, rgba(11,18,32,.55) 100%);
  pointer-events: none;
}
.au-aside > * { position: relative; z-index: 1; }

.au-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--au-display); font-weight: 800; font-size: 1.55rem;
  letter-spacing: -.04em;
}
.au-brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff, #fecdd3);
  color: var(--au-brand); font-size: 1.1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.au-aside h1 {
  margin: 28px 0 12px;
  font-family: var(--au-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.05; letter-spacing: -.045em; font-weight: 800;
  max-width: 12ch;
}
.au-aside .lead {
  margin: 0; max-width: 36ch;
  font-size: 1.05rem; line-height: 1.55; color: rgba(255,255,255,.88);
}
.au-aside-foot {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.au-aside-meta {
  font-size: .88rem; color: rgba(255,255,255,.75); line-height: 1.5;
}
.au-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.au-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  font-size: .78rem; font-weight: 700;
}

/* MAIN */
.au-main {
  display: flex; flex-direction: column;
  min-height: 100dvh;
  background:
    radial-gradient(500px 280px at 100% 0%, rgba(225,29,72,.06), transparent 55%),
    #f8fafc;
}
.au-main-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px clamp(20px, 4vw, 48px) 0;
}
.au-lang {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--au-line); background: #fff;
}
.au-lang a {
  padding: 7px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--au-muted);
}
.au-lang a.on { background: var(--au-ink); color: #fff; }
.au-main-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px clamp(20px, 4vw, 56px) 40px;
  width: min(520px, 100%);
  margin: 0 auto;
}
.au-main-body.wide { width: min(640px, 100%); }
.au-main h2 {
  margin: 0 0 8px;
  font-family: var(--au-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -.035em; font-weight: 800;
}
.au-main .sub { margin: 0 0 22px; color: var(--au-muted); font-size: .95rem; line-height: 1.5; }

/* ROLE SWITCHER */
.au-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.au-role {
  appearance: none; border: 1.5px solid var(--au-line);
  background: #fff; border-radius: 18px; padding: 14px 14px 12px;
  text-align: left; cursor: pointer; color: inherit;
  transition: border-color .18s, transform .15s, box-shadow .18s, background .18s;
  display: flex; flex-direction: column; gap: 4px; min-height: 92px;
}
.au-role:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  border-color: #cbd5e1;
}
.au-role.on {
  border-color: rgba(225, 29, 72, .55);
  background: linear-gradient(180deg, #fff1f2, #fff);
  box-shadow: 0 14px 30px rgba(225, 29, 72, .12);
}
.au-role .ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 4px;
  background: #f1f5f9; color: var(--au-brand);
}
.au-role.on .ico { background: #ffe4e6; }
.au-role strong {
  font-family: var(--au-display); font-size: .95rem; letter-spacing: -.02em; font-weight: 800;
}
.au-role span { font-size: .78rem; color: var(--au-muted); font-weight: 600; line-height: 1.3; }

.au-role-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.au-role-chip {
  appearance: none; border: 1px solid var(--au-line); background: #fff;
  border-radius: 999px; padding: 9px 14px; font-size: .8rem; font-weight: 700;
  color: var(--au-ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: .15s;
}
.au-role-chip:hover { border-color: #cbd5e1; }
.au-role-chip.on {
  background: var(--au-ink); color: #fff; border-color: var(--au-ink);
}

/* FORM */
.au-field { margin-bottom: 12px; position: relative; }
.au-field label {
  display: block; font-size: .78rem; font-weight: 700; color: #475569; margin-bottom: 6px;
}
.au-field input, .au-field select {
  width: 100%; padding: 14px 14px 14px 44px;
  border-radius: 14px; border: 1.5px solid #e2e8f0; background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.au-field input.plain, .au-field.select-plain input, .au-field.plain input {
  padding-left: 14px;
}
.au-field input:focus {
  border-color: rgba(225,29,72,.55);
  box-shadow: 0 0 0 4px rgba(225,29,72,.12);
}
.au-field > i {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
}
.au-field.has-label > i { top: calc(50% + 11px); }

.au-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.au-grid-2 .full { grid-column: 1 / -1; }

.au-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 800;
  font-size: .95rem; cursor: pointer; transition: transform .15s, filter .15s;
}
.au-btn:hover { transform: translateY(-1px); }
.au-btn-primary {
  background: linear-gradient(135deg, var(--au-brand), #be123c);
  color: #fff; box-shadow: 0 12px 28px rgba(225, 29, 72, .28);
}
.au-btn-ghost {
  background: #fff; color: var(--au-ink-soft); border: 1px solid var(--au-line);
}
.au-btn-ok {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; box-shadow: 0 12px 28px rgba(16, 185, 129, .28);
}
.au-btn-block { width: 100%; }
.au-btn-sm { padding: 10px 14px; font-size: .82rem; }

.au-google {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border-radius: 14px; border: 1.5px solid #e2e8f0; background: #fff;
  font-weight: 700; transition: background .2s;
}
.au-google:hover { background: #f8fafc; }
.au-divider {
  display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: .78rem; margin: 16px 0;
}
.au-divider::before, .au-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

.au-alert {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .9rem; text-align: center; font-weight: 600;
}
.au-alert-danger { background: #fee2e2; color: #991b1b; }
.au-alert-success { background: #dcfce7; color: #166534; }
.au-alert-info { background: #e0f2fe; color: #075985; }

.au-links {
  margin-top: 20px; text-align: center; font-size: .9rem; color: var(--au-muted); line-height: 1.7;
}
.au-links a { color: var(--au-brand); font-weight: 800; }

.au-panel { animation: auIn .28s ease; }
@keyframes auIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.au-secure-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #f1f5f9; color: var(--au-muted); font-size: .8rem; line-height: 1.45;
}
.au-secure-note i { color: var(--au-ok); margin-top: 2px; }

.au-plan-card {
  margin-top: 24px; padding: 18px; border-radius: 18px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}
.au-plan-card .tag {
  display: inline-block; background: #fff; color: var(--au-brand);
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.au-plan-card strong { display: block; font-family: var(--au-display); font-size: 1.2rem; }
.au-plan-card .price { font-family: var(--au-display); font-size: 1.8rem; font-weight: 800; margin-top: 4px; }

/* Courier dark variant */
.au-page.courier .au-aside {
  background:
    linear-gradient(155deg, rgba(16,185,129,.88) 0%, rgba(6,78,59,.9) 45%, rgba(11,18,32,.96) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1400&q=70') center/cover;
}
.au-page.courier .au-brand-mark { color: #059669; }

@media (max-width: 960px) {
  .au-page { grid-template-columns: 1fr; }
  .au-aside {
    min-height: auto;
    padding: 28px 22px 32px;
  }
  .au-aside h1 { font-size: 1.85rem; max-width: none; margin-top: 18px; }
  .au-main { min-height: auto; }
  .au-main-body { padding-top: 28px; padding-bottom: 48px; }
}
@media (max-width: 560px) {
  .au-roles { grid-template-columns: 1fr; }
  .au-grid-2 { grid-template-columns: 1fr; }
  .au-grid-2 .full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .au-panel, .au-role { animation: none !important; transition: none !important; }
}
