:root {
  --brand: #1a73e8;
  --brand-dark: #1557b0;
  --ink: #202124;
  --muted: #5f6368;
  --card: #fff;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  /* Remove height: 100% to allow natural scrolling */
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f7f9fc; /* Cor padrão sem imagem */
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px env(safe-area-inset-left) calc(24px + env(safe-area-inset-bottom)) env(safe-area-inset-right);
  overflow: auto;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Layout principal */
.container {
  top:5%;
  width: 100%;
  max-width: 980px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin: 0 auto;
}

/* Coluna esquerda */
.image-section {
  padding: 40px 44px;
  background:
    radial-gradient(80% 120% at 0% 0%, #e8f0ff 0%, transparent 65%),
    radial-gradient(90% 130% at 120% 120%, #eef5ff 0%, transparent 60%),
    #fff;
  border-right: 1px solid #eef0f3;
  display: flex;
  align-items: center;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.logo {
  max-width: 150px;
  height: auto;
}

.hero {
  max-width: 440px;
}

.subtitle {
  font-size: 16px;
  color: #4a5568;
  margin: 0 0 8px;
}

.headline {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: .3px;
  color: var(--ink);
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
  display: grid;
  gap: 8px;
}

.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
}

.bullets i {
  color: var(--brand);
  margin-top: 2px;
  min-width: 16px;
}

.social-icons {
  margin-top: 6px;
}

.social-icons a {
  color: var(--brand);
  margin-right: 10px;
  font-size: 1.15em;
  text-decoration: none;
  transition: color .2s ease, transform .1s ease;
}

.social-icons a:hover {
  color: var(--brand-dark);
  transform: translateY(-1px);
}

/* Coluna direita (form) */
.form-section {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.form-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.form-wrap h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.form-wrap p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.55;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

input {
  padding: 12px 14px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}

.url-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.url-input span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
  max-width: 45%;
}

.url-input input {
  flex: 1 1 0%;
  min-width: 0;
  width: 1px;
  max-width: 100%;
}

.preview-url {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

button {
  padding: 12px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(26,115,232,.25);
  transition: background .2s, transform .06s;
}

button:hover {
  background: var(--brand-dark);
}

button:active {
  transform: translateY(1px);
}

.login-option {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.login-option a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.login-option a:hover {
  text-decoration: underline;
}

/* WhatsApp flutuante */
.support-icon {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 1.4em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .2s;
}

.support-icon:hover {
  transform: scale(1.06);
}

/* Botão hambúrguer */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--brand-dark);
}

.desktop-toggle {
  display: none;
}

/* Sidebar off-canvas */
#sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(86vw, 420px);
  max-width: 100%;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 20px 18px 28px;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  box-shadow: -12px 0 32px rgba(0,0,0,.15);
}

#sidebar.open {
  transform: translateX(0);
}

#close-sidebar {
  position: absolute;
  top: 25px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}

#close-sidebar:hover {
  color: var(--ink);
}

#lista-menu {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

#lista-menu li {
  padding: 10px 6px;
  border-bottom: 1px solid #eef0f3;
}

.field-help {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-help.neutral {
  color: var(--muted);
}

.field-help.ok {
  color: #1b7e2b;
}

.field-help.bad {
  color: #b00020;
}

/* Responsivo */
@media (max-width: 880px) {
  .container {
    grid-template-columns: 1fr;
  }
  .image-section {
    border-right: 0;
    border-bottom: 1px solid #eef0f3;
    padding: 32px 26px;
  }
  .form-section {
    padding: 28px 22px;
  }
  .form-wrap {
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 16px env(safe-area-inset-left) calc(16px + env(safe-area-inset-bottom)) env(safe-area-inset-right);
  }
  .container {
    max-width: 100%;
    border-radius: 8px;
  }
  .image-section {
    padding: 24px 16px;
  }
  .form-section {
    padding: 24px 16px;
  }
  .logo {
    font-size: 28px;
  }
  .headline {
    font-size: 24px;
  }
  .lead {
    font-size: 14px;
  }
  .form-wrap h1 {
    font-size: 18px;
  }
  .form-wrap p {
    font-size: 13px;
  }
  input {
    font-size: 13px;
    padding: 10px 12px;
  }
  button {
    font-size: 13px;
    padding: 10px;
  }
}

#voltar-menu-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#voltar-menu-btn:hover {
  color: #000000;
}

/* iOS zoom fix */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Imagem de fundo apenas em desktop */
@media (min-width: 768px) {
  body {
    /*background:
      linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
      url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80')
      center/cover no-repeat;*/
  }
}

@media (prefers-reduced-data: reduce) {
  body { background: #f7f9fc !important; }
}

/* Posicionamento do menu-toggle */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 15px;
  }
  .header {
    position: relative;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none; /* Esconde o botão na .image-section em desktop */
  }
  .desktop-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 0;
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
  }
  .desktop-toggle:hover {
    color: var(--brand-dark);
  }
  .form-wrap h1 {
    position: relative;
    display: inline-block;
  }
  .form-wrap .desktop-toggle {
    position: absolute;
    top: 0px;
    right: -24px; /* Ajuste a distância do texto */
    transform: translateY(-50%);
  }
}

@media (min-width: 769px) {
  .desktop-toggle {
    right: -60px; /* Mais espaço do texto */
  }
  .form-wrap h1 {
    margin-right: 60px; /* Ajuste correspondente */
  }
}