/* ==========================================================================
   ONVER Food — Unified Auth & Onboarding Design System
   Tipografia: Manrope | Cores: Azul-Marinho, Branco, Laranja/Vermelho ONVER
   Mobile-first para Entregador | Desktop-first responsivo para Estabelecimento
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --onver-navy-deep: #0A192F;
  --onver-navy-surface: #0F254A;
  --onver-navy-card: #142D57;
  --onver-navy-hover: #1A386B;
  
  --onver-orange: #FF4D15;
  --onver-orange-light: #FF6A2B;
  --onver-red: #FF3311;
  --onver-gradient: linear-gradient(135deg, #FF5C00 0%, #FF3D00 100%);
  --onver-gradient-navy: linear-gradient(180deg, #0A192F 0%, #0F254A 100%);
  
  --onver-white: #FFFFFF;
  --onver-slate-50: #F8FAFC;
  --onver-slate-100: #F1F5F9;
  --onver-slate-200: #E2E8F0;
  --onver-slate-300: #CBD5E1;
  --onver-slate-400: #94A3B8;
  --onver-slate-600: #475569;
  --onver-slate-800: #1E293B;

  --onver-success: #10B981;
  --onver-success-bg: #ECFDF5;
  --onver-warning: #F59E0B;
  --onver-warning-bg: #FFFBEB;
  --onver-danger: #EF4444;
  --onver-danger-bg: #FEF2F2;
  --onver-info: #3B82F6;
  --onver-info-bg: #EFF6FF;

  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-subtle: 0 4px 20px rgba(10, 25, 47, 0.06);
  --shadow-card: 0 12px 35px rgba(10, 25, 47, 0.10);
  --shadow-glow: 0 10px 25px rgba(255, 77, 21, 0.28);
}

/* Global Reset for Auth Modules */
.onver-auth-scope {
  font-family: var(--font-main);
  color: var(--onver-slate-800);
  background-color: var(--onver-slate-50);
  min-height: 100vh;
  box-sizing: border-box;
}

.onver-auth-scope * {
  box-sizing: border-box;
  font-family: inherit;
}

/* ==========================================================================
   GATEWAY INICIAL: BEM-VINDO AO ONVER FOOD
   ========================================================================== */
.onver-gateway {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--onver-gradient-navy);
  color: var(--onver-white);
  padding: 32px 24px;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.onver-gateway::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 77, 21, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.onver-gateway::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.onver-gateway__container {
  width: 100%;
  max-width: 980px;
  z-index: 2;
  text-align: center;
}

.onver-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.onver-brand-badge img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.onver-brand-badge span {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--onver-white);
}

.onver-brand-badge span b {
  color: var(--onver-orange);
}

.onver-gateway h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.onver-gateway p.lead {
  font-size: 18px;
  color: var(--onver-slate-300);
  margin: 0 0 42px 0;
  font-weight: 400;
}

.onver-gateway__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.onver-choice-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  text-align: left;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.onver-choice-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--onver-orange);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.onver-choice-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 77, 21, 0.15);
  color: var(--onver-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.onver-choice-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: var(--onver-white);
}

.onver-choice-card p {
  color: var(--onver-slate-300);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px 0;
  flex-grow: 1;
}

.onver-choice-card .btn-cta {
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  border: none;
}

.onver-choice-card.store .btn-cta {
  background: var(--onver-gradient);
  color: var(--onver-white);
  box-shadow: var(--shadow-glow);
}

.onver-choice-card.courier .btn-cta {
  background: var(--onver-white);
  color: var(--onver-navy-deep);
}

.onver-choice-card:hover .btn-cta {
  filter: brightness(1.08);
}

.onver-gateway__footer {
  color: var(--onver-slate-400);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}

.onver-gateway__footer a, .onver-gateway__footer button {
  color: var(--onver-slate-300);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.onver-gateway__footer a:hover, .onver-gateway__footer button:hover {
  color: var(--onver-orange);
}

/* ==========================================================================
   ESTABELECIMENTO (PARCEIROS) — DESIGN IDÊNTICO A https://food.onvermkt.com.br
   Layout split-screen com Hero Image à esquerda e Card flutuante à direita
   ========================================================================== */
.food-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(460px, 0.85fr);
  background: #f8fafc;
  color: #102653;
  font-family: 'Manrope', Inter, system-ui, sans-serif;
}

.food-auth * {
  box-sizing: border-box;
}

.food-auth__hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.food-auth__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
  opacity: 0.55;
}

.food-auth__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(248, 250, 252, 0.6) 65%, #f8fafc 90%);
  pointer-events: none;
}

.food-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  overflow-y: auto;
  max-height: 100vh;
}

.food-auth__card {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 34px 32px;
  box-shadow: 0 24px 70px rgba(16, 38, 83, 0.12);
  margin: auto;
}

.food-auth__card.wide {
  max-width: 680px;
}

.food-auth__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.food-auth__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.food-auth__brand strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #102653;
}

.food-auth__brand strong span {
  color: #ff5a18;
}

.food-auth__brand small {
  display: block;
  color: #748299;
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-top: 3px;
  font-weight: 800;
}

.food-auth h1, .food-auth h2 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  color: #102653;
}

.food-auth__lead {
  color: #718096;
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 20px;
}

.food-auth__back {
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: 14px;
  color: #52647f;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.food-auth__back:hover {
  color: #ff5a18;
}

.food-auth__steps {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.food-auth__step {
  flex: 1;
  color: #8793a6;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
}

.food-auth__step i {
  display: block;
  height: 5px;
  background: #e5eaf2;
  border-radius: 9px;
  margin-bottom: 5px;
  transition: all 0.3s;
}

.food-auth__step.on {
  color: #102653;
}

.food-auth__step.on i {
  background: linear-gradient(90deg, #ff6a1a, #ff4818);
}

.food-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.food-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.food-auth__field.full {
  grid-column: 1 / -1;
}

.food-auth__field label {
  font-size: 11.5px;
  font-weight: 800;
  color: #102653;
}

.food-auth__field input, .food-auth__field select, .food-auth__field textarea {
  height: 48px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 0 14px;
  background: #f8fafc;
  color: #102653;
  font: inherit;
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: all 0.2s ease;
}

.food-auth__field input:focus, .food-auth__field select:focus, .food-auth__field textarea:focus {
  border-color: #ff5a18;
  background: #ffffff;
  box-shadow: 0 0 0 3px #fff0e9;
}

.food-auth__primary {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff6a1a, #ff4818);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(255, 80, 24, 0.24);
  transition: all 0.2s ease;
}

.food-auth__primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.food-auth__secondary {
  width: 100%;
  height: 48px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #ffffff;
  color: #102653;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.food-auth__secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.food-auth__demo {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  color: #415573;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.food-auth__demo:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.food-auth__links {
  text-align: center;
  color: #748299;
  font-size: 12px;
  margin-top: 18px;
}

.food-auth__links button {
  border: 0;
  background: none;
  color: #f05219;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.food-auth__trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #7b8799;
  font-size: 11px;
  font-weight: 600;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .food-auth {
    grid-template-columns: 1fr;
  }
  .food-auth__hero {
    min-height: 0;
    height: 220px;
  }
  .food-auth__hero::after {
    background: linear-gradient(0deg, #f8fafc, transparent 65%);
  }
  .food-auth__panel {
    padding: 0 16px 32px;
    margin-top: -30px;
    z-index: 2;
  }
  .food-auth__card {
    padding: 26px 20px;
    border-radius: 24px;
  }
  .food-auth__grid {
    grid-template-columns: 1fr;
  }
  .food-auth__field.full {
    grid-column: auto;
  }
}

/* Compatibilidade com stepper horizontal */

/* Stepper horizontal moderno */
.onver-stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  background: var(--onver-slate-100);
  padding: 8px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.onver-stepper__step {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--onver-slate-400);
  background: transparent;
  transition: all 0.2s;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.onver-stepper__step.active {
  background: var(--onver-white);
  color: var(--onver-navy-deep);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.onver-stepper__step.completed {
  color: var(--onver-success);
}

.onver-stepper__step .num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--onver-slate-200);
  color: var(--onver-slate-600);
  font-size: 11px;
}

.onver-stepper__step.active .num {
  background: var(--onver-orange);
  color: var(--onver-white);
}

.onver-stepper__step.completed .num {
  background: var(--onver-success);
  color: var(--onver-white);
}

/* Formulários elegantes */
.onver-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.onver-input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.onver-input-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--onver-navy-deep);
}

.onver-input-group label .req {
  color: var(--onver-orange);
}

.onver-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--onver-navy-deep);
  background: var(--onver-slate-50);
  border: 1.5px solid var(--onver-slate-200);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  outline: none;
}

.onver-input:focus {
  border-color: var(--onver-orange);
  background: var(--onver-white);
  box-shadow: 0 0 0 4px rgba(255, 77, 21, 0.12);
}

.onver-input.error {
  border-color: var(--onver-danger);
  background: var(--onver-danger-bg);
}

.onver-field-error {
  font-size: 12px;
  color: var(--onver-danger);
  font-weight: 600;
  margin-top: 3px;
}

/* Upload cards com status */
.onver-doc-card {
  border: 1.5px solid var(--onver-slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--onver-white);
  margin-bottom: 16px;
  transition: all 0.2s;
}

.onver-doc-card:hover {
  border-color: var(--onver-slate-300);
  box-shadow: var(--shadow-subtle);
}

.onver-doc-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.onver-doc-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--onver-navy-deep);
}

.onver-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending { background: var(--onver-slate-100); color: var(--onver-slate-600); }
.badge-uploaded { background: var(--onver-info-bg); color: var(--onver-info); }
.badge-under_review { background: var(--onver-warning-bg); color: var(--onver-warning); }
.badge-approved { background: var(--onver-success-bg); color: var(--onver-success); }
.badge-rejected { background: var(--onver-danger-bg); color: var(--onver-danger); }

.onver-doc-card p {
  color: var(--onver-slate-600);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.onver-doc-card__rejection {
  background: var(--onver-danger-bg);
  border-left: 3px solid var(--onver-danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  color: #991B1B;
  font-size: 13px;
  font-weight: 600;
}

.onver-doc-upload-zone {
  border: 2px dashed var(--onver-slate-300);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: var(--onver-slate-50);
  cursor: pointer;
  transition: all 0.2s;
}

.onver-doc-upload-zone:hover {
  border-color: var(--onver-orange);
  background: #FFF7F2;
}

/* ==========================================================================
   TIMELINE DE STATUS DO CADASTRO
   ========================================================================== */
.onver-timeline {
  position: relative;
  padding: 24px 0 24px 36px;
  border-left: 3px solid var(--onver-slate-200);
  margin-left: 20px;
}

.onver-timeline__item {
  position: relative;
  margin-bottom: 32px;
}

.onver-timeline__item:last-child {
  margin-bottom: 0;
}

.onver-timeline__dot {
  position: absolute;
  left: -48px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--onver-white);
  border: 3px solid var(--onver-slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onver-timeline__item.completed .onver-timeline__dot {
  background: var(--onver-success);
  border-color: var(--onver-success);
  color: var(--onver-white);
}

.onver-timeline__item.active .onver-timeline__dot {
  background: var(--onver-orange);
  border-color: var(--onver-orange);
  box-shadow: 0 0 0 4px rgba(255, 77, 21, 0.2);
}

.onver-timeline__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--onver-navy-deep);
  margin-bottom: 4px;
}

.onver-timeline__desc {
  font-size: 13px;
  color: var(--onver-slate-600);
  line-height: 1.5;
}

/* ==========================================================================
   ENTREGADOR — MOBILE FIRST
   ========================================================================== */
.onver-courier-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #061124;
  padding: 0;
}

.onver-courier-phone-frame {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--onver-white);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.onver-courier-header {
  padding: 24px 20px 16px;
  background: var(--onver-navy-deep);
  color: var(--onver-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.onver-courier-body {
  padding: 24px 20px;
  flex-grow: 1;
  overflow-y: auto;
}

/* Seletor de veículo */
.onver-vehicle-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.onver-vehicle-btn {
  border: 2px solid var(--onver-slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 8px;
  text-align: center;
  background: var(--onver-white);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.onver-vehicle-btn.selected {
  border-color: var(--onver-orange);
  background: #FFF5EE;
  color: var(--onver-orange);
  box-shadow: 0 4px 15px rgba(255, 77, 21, 0.15);
}

.onver-vehicle-btn svg {
  width: 32px;
  height: 32px;
}

.onver-vehicle-btn span {
  font-size: 12px;
  font-weight: 800;
}

/* Botões primários */
.btn-onver-primary {
  width: 100%;
  height: 52px;
  background: var(--onver-gradient);
  color: var(--onver-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s;
}

.btn-onver-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-onver-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-onver-secondary {
  width: 100%;
  height: 50px;
  background: var(--onver-slate-100);
  color: var(--onver-navy-deep);
  border: 1px solid var(--onver-slate-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-onver-secondary:hover {
  background: var(--onver-slate-200);
}

/* Responsividade */
@media (max-width: 900px) {
  .onver-gateway__cards {
    grid-template-columns: 1fr;
  }
  .onver-partner-layout {
    grid-template-columns: 1fr;
  }
  .onver-partner-sidebar {
    height: auto;
    position: static;
    padding: 28px 20px;
  }
  .onver-partner-content {
    padding: 24px 18px;
  }
  .onver-form-grid {
    grid-template-columns: 1fr;
  }
  .col-12, .col-8, .col-6, .col-4, .col-3 {
    grid-column: 1 / -1;
  }
}
