/* ============================================================
   Gênio Cardápio — Design System (Uber-style)
   Prefixo: gc-
   Referência: gc-wizard.css (cadastro 3 passos)
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --gc-black: #0a0a0a;
  --gc-white: #ffffff;
  --gc-bg: #fafafa;
  --gc-card: #ffffff;
  --gc-text: #0a0a0a;
  --gc-text-secondary: #3f3f46;
  --gc-muted: #71717a;
  --gc-subtle: #a1a1aa;
  --gc-border: #e4e4e7;
  --gc-border-hover: #d4d4d8;
  --gc-surface: #f4f4f5;
  --gc-error: #dc2626;
  --gc-error-bg: #fef2f2;
  --gc-error-border: #fecaca;
  --gc-success: #16a34a;
  --gc-success-bg: #f0fdf4;
  --gc-success-border: #bbf7d0;
  --gc-warning: #d97706;
  --gc-warning-bg: #fffbeb;
  --gc-warning-border: #fde68a;
  --gc-info: #0284c7;
  --gc-info-bg: #f0f9ff;
  --gc-info-border: #bae6fd;
  --gc-radius: 10px;
  --gc-radius-sm: 8px;
  --gc-radius-lg: 14px;
  --gc-transition: 0.2s ease;
  --gc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gc-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --gc-shadow: 0 4px 16px rgba(0,0,0,.06);
  --gc-shadow-lg: 0 10px 40px rgba(0,0,0,.08);
}

/* ---- Reset dentro do gc ---- */
.gc-page *, .gc-page *::before, .gc-page *::after { box-sizing: border-box; }
.gc-page { margin: 0; }

/* ---- Page overlay (fullscreen auth pages) ---- */
.gc-page {
  position: fixed; inset: 0;
  background: var(--gc-bg);
  z-index: 99999;
  overflow-y: auto;
  font-family: var(--gc-font);
  color: var(--gc-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ---- Header (thin top bar) ---- */
.gc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--gc-white);
  border-bottom: 1px solid var(--gc-border);
}
.gc-header-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.gc-header-brand img { height: 28px; width: auto; }
.gc-header-right { font-size: 13px; color: var(--gc-muted); }
.gc-header-right a {
  color: var(--gc-black); font-weight: 600;
  text-decoration: none;
}
.gc-header-right a:hover { text-decoration: underline; }

/* ---- Center wrapper ---- */
.gc-center {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 28px 16px 40px;
}
.gc-center--top { align-items: flex-start; padding-top: 48px; }

/* ---- Card ---- */
.gc-card {
  width: 100%; max-width: 440px;
  background: var(--gc-card);
  border-radius: var(--gc-radius);
  padding: 32px 28px;
  border: 1px solid var(--gc-border);
}
.gc-card--narrow { max-width: 400px; }
.gc-card--wide { max-width: 520px; }

/* ---- Typography ---- */
.gc-title {
  font-size: 24px; font-weight: 800;
  margin: 0 0 4px; line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gc-text);
}
.gc-title--sm { font-size: 20px; }
.gc-title--center { text-align: center; }
.gc-subtitle {
  font-size: 14px; color: var(--gc-muted);
  margin: 0 0 24px; line-height: 1.5;
}
.gc-subtitle--center { text-align: center; }

/* ---- Badge / Icon circle ---- */
.gc-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: var(--gc-surface);
  margin-bottom: 16px;
}

/* ---- Top section (icon + title centered) ---- */
.gc-top {
  text-align: center;
  margin-bottom: 24px;
}

/* ---- Field ---- */
.gc-field { margin-bottom: 16px; }
.gc-label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--gc-text-secondary);
  margin-bottom: 6px;
}
.gc-label-row {
  display: flex; align-items: baseline;
  justify-content: space-between;
}
.gc-label-row a {
  font-size: 13px; font-weight: 600;
  color: var(--gc-black);
  text-decoration: none;
}
.gc-label-row a:hover { text-decoration: underline; }

/* ---- Input ---- */
.gc-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px; font-family: var(--gc-font);
  border: 1.5px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  outline: none;
  background: var(--gc-white);
  color: var(--gc-text);
  transition: border-color var(--gc-transition);
}
.gc-input::placeholder { color: var(--gc-subtle); }
.gc-input:focus { border-color: var(--gc-black); }
.gc-input--error { border-color: var(--gc-error) !important; }
.gc-input--valid { border-color: var(--gc-success) !important; }
.gc-input--lg {
  font-size: 22px; text-align: center;
  letter-spacing: 8px; padding: 14px;
}

/* Select */
.gc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

/* Textarea */
textarea.gc-input { resize: vertical; min-height: 80px; }

/* Input wrap (for toggle password, icons) */
.gc-input-wrap { position: relative; }
.gc-input-wrap .gc-input { padding-right: 44px; }
.gc-toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--gc-muted); font-size: 16px; line-height: 1;
}
.gc-toggle-pw:hover { color: var(--gc-text); }

/* Phone row */
.gc-phone-row { display: flex; gap: 8px; }
.gc-phone-ddd {
  flex: 0 0 72px;
  display: flex; align-items: center;
  border: 1.5px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  overflow: hidden; background: var(--gc-white);
}
.gc-phone-ddd span { padding: 0 2px 0 10px; color: var(--gc-muted); font-size: 15px; }
.gc-phone-ddd input {
  border: none; padding: 12px 6px 12px 0;
  width: 100%; font-size: 15px; outline: none;
  min-width: 0; font-family: var(--gc-font);
  color: var(--gc-text);
}
.gc-phone-row .gc-input { flex: 1; min-width: 0; }

/* ---- Hint ---- */
.gc-hint {
  font-size: 12px; margin-top: 4px;
  color: var(--gc-muted);
  min-height: 14px;
}
.gc-hint--error { color: var(--gc-error); }
.gc-hint--ok { color: var(--gc-success); }

/* ---- Row ---- */
.gc-row { display: flex; gap: 12px; }
.gc-row > .gc-field { flex: 1; }

/* ---- Buttons ---- */
.gc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border-radius: var(--gc-radius-sm);
  font-size: 15px; font-weight: 700;
  font-family: var(--gc-font);
  border: none; cursor: pointer;
  transition: background var(--gc-transition), opacity var(--gc-transition);
  text-decoration: none;
  line-height: 1.4;
}
.gc-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Primary = black */
.gc-btn-primary {
  background: var(--gc-black);
  color: var(--gc-white);
}
.gc-btn-primary:hover { background: #262626; }

/* Secondary = outlined */
.gc-btn-secondary {
  background: transparent;
  border: 1.5px solid var(--gc-border);
  color: var(--gc-muted);
}
.gc-btn-secondary:hover { background: var(--gc-surface); color: var(--gc-text); }

/* Ghost = text only */
.gc-btn-ghost {
  background: transparent;
  color: var(--gc-muted);
  font-size: 14px; font-weight: 600;
  padding: 10px 16px;
}
.gc-btn-ghost:hover { color: var(--gc-text); background: var(--gc-surface); }

/* Danger */
.gc-btn-danger {
  background: var(--gc-error);
  color: var(--gc-white);
}
.gc-btn-danger:hover { background: #b91c1c; }

/* ---- Spinner ---- */
.gc-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gc-spin .6s linear infinite;
  display: none;
}
.gc-btn.gc-loading .gc-spinner { display: inline-block; }
.gc-btn.gc-loading .gc-btn-label { display: none; }
.gc-btn.gc-loading .gc-btn-loading { display: inline; }
.gc-btn-loading { display: none; }
@keyframes gc-spin { to { transform: rotate(360deg); } }

/* ---- Alerts ---- */
.gc-alert {
  border-radius: var(--gc-radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.gc-alert--error {
  background: var(--gc-error-bg);
  border: 1px solid var(--gc-error-border);
  color: var(--gc-error);
}
.gc-alert--success {
  background: var(--gc-success-bg);
  border: 1px solid var(--gc-success-border);
  color: var(--gc-success);
}
.gc-alert--warning {
  background: var(--gc-warning-bg);
  border: 1px solid var(--gc-warning-border);
  color: var(--gc-warning);
}
.gc-alert--info {
  background: var(--gc-info-bg);
  border: 1px solid var(--gc-info-border);
  color: var(--gc-info);
}

/* ---- Checkbox / Terms ---- */
.gc-check-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; cursor: pointer; line-height: 1.5;
}
.gc-check-label input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px;
  accent-color: var(--gc-black);
  flex-shrink: 0;
}
.gc-check-label a { color: var(--gc-black); font-weight: 600; }

/* ---- Link ---- */
.gc-link {
  color: var(--gc-black); font-weight: 600;
  text-decoration: none;
}
.gc-link:hover { text-decoration: underline; }
.gc-link--muted {
  color: var(--gc-muted); font-weight: 400;
}
.gc-link--muted b, .gc-link--muted strong { color: var(--gc-black); }

/* ---- Divider ---- */
.gc-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--gc-muted); font-size: 13px;
}
.gc-divider::before, .gc-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--gc-border);
}

/* ---- Footer text ---- */
.gc-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gc-muted);
}
.gc-foot a { color: var(--gc-black); font-weight: 600; text-decoration: none; }
.gc-foot a:hover { text-decoration: underline; }

.gc-foot-small {
  text-align: center;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--gc-border);
  font-size: 12px; color: var(--gc-subtle);
}
.gc-foot-small img { height: 16px; width: auto; vertical-align: -3px; opacity: .7; margin-right: 4px; }

/* ---- Success circle ---- */
.gc-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gc-success-bg);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  animation: gc-pop .4s cubic-bezier(.175,.885,.32,1.275);
}
.gc-success-icon svg { width: 32px; height: 32px; color: var(--gc-success); }
@keyframes gc-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* ---- Others links row ---- */
.gc-others {
  text-align: center;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--gc-border);
  font-size: 13px; color: var(--gc-subtle);
}
.gc-others a {
  color: var(--gc-muted);
  text-decoration: none;
  font-weight: 500;
}
.gc-others a:hover { color: var(--gc-text); text-decoration: underline; }

/* ---- Animation ---- */
.gc-fade-in { animation: gc-fadeIn .25s ease; }
@keyframes gc-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .gc-card { padding: 24px 20px; }
  .gc-header { padding: 12px 16px; }
  .gc-center { padding: 20px 12px 32px; }
  .gc-title { font-size: 20px; }
  .gc-row { flex-direction: column; gap: 0; }
  .gc-page .g-recaptcha { transform: scale(0.85); transform-origin: 0 0; }
}
