* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

.screen {
  position: relative;
  width: 100%; height: 100vh;
  min-height: 620px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ── IMAGEM DE FUNDO OCUPA TUDO ── */
.bg {
  position: absolute; inset: 0;
  background-image: url('/assets/img/image1.png');
  background-size: cover;
}

/* ── CAMADA QUE FUNDE IMAGEM → BRANCO ── */
/* Gradiente horizontal: transparente à esquerda, branco à direita */
.fade-to-white {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0)        0%,
    rgba(0,0,0,0)        30%,
    rgba(255,255,255,0.08) 42%,
    rgba(255,255,255,0.45) 52%,
    rgba(255,255,255,0.82) 60%,
    rgba(255,255,255,0.97) 66%,
    rgba(255,255,255,1)  72%,
    rgba(255,255,255,1) 100%
  );
}

/* Escurece levemente a parte esquerda para o texto respirar */
.darken-left {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(4,2,1,0.55) 0%,
    rgba(4,2,1,0.30) 30%,
    rgba(4,2,1,0)    50%
  );
}

/* Gradiente de baixo para cima no lado esquerdo — legibilidade do texto */
.darken-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,2,1,0.80) 0%,
    rgba(4,2,1,0.45) 28%,
    rgba(4,2,1,0)    55%
  );
  mask-image: linear-gradient(to right, black 0%, black 48%, transparent 65%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 48%, transparent 65%);
}

/* ── LAYOUT PRINCIPAL ── */
.layout {
  position: relative; z-index: 2;
  display: flex;
  height: 100%;
  align-items: stretch;
}

/* ── LADO ESQUERDO — texto sobre a foto ── */
.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 48px;
}

/* Bloco de texto principal */
.left-body { 
  max-width: 500px;
}

.eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.30em; text-transform: uppercase;
  color: #c0392b; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: #c0392b; border-radius: 1px; }

.headline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.13;
  margin-bottom: 18px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
}
.headline em {
  font-style: italic;
  font-weight: 700;
  color: #ffa67a;
}

.subline {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 100%;
  font-weight: 300;
  margin-bottom: 36px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Features */
.features { display: flex; flex-direction: row; gap: 24px; justify-content: flex-start; flex-wrap: wrap; }
.feat { display: flex; align-items: flex-start; gap: 16px; }
.feat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.55); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat-text .t { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.95); margin-bottom: 4px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.feat-text .d { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

/* ── LADO DIREITO — formulário sobre branco ── */
.right {
  flex: 0 1 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 10rem 0 0;
}

.form-wrap { width: 100%;}

/* Logo */
.logo-area { margin-bottom: 36px; }
.logo-row { display: flex; align-items: center; gap: 11px; justify-content: center; }
.logo-sq {
  width: 42px; height: 42px;
  background: #c0392b; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-sq img { width: 100%; height: 100%; object-fit: contain; }
.logo-words .brand { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 24px; font-weight: 700; color: #1a1a1a; letter-spacing: 0.30em; }
.logo-words .sub   { font-size: 12px; color: #7e7373; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 2px; text-align: center; }

/* Heading */
.form-head { margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.form-head h1 { font-size: 22px; font-weight: 700; color: #111; letter-spacing: -0.02em; margin-bottom: 5px; }
.form-head p  { font-size: 12px; color: #999; line-height: 1.6; font-weight: 400; }

/* Campos */
.field { margin-bottom: 16px; }
.field-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.field-top label { font-size: 11px; font-weight: 600; color: #555; letter-spacing: 0.02em; }
.field-top a { font-size: 11px; color: #c0392b; text-decoration: none; font-weight: 500; }

.inp-wrap { position: relative; }
.inp-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  pointer-events: none; display: flex;
}
.inp-icon svg { width: 14px; height: 14px; stroke: #ccc; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.inp-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  cursor: pointer; display: flex; opacity: 0.35;
}
.inp-eye svg { width: 14px; height: 14px; stroke: #555; fill: none; stroke-width: 1.6; stroke-linecap: round; }

.inp {
  width: 100%;
  background: #f8f7f5;
  border: 1.5px solid #eae7e2;
  border-radius: 10px;
  padding: 12px 14px 12px 39px;
  font-size: 16px; color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.inp:focus {
  border-color: #c0392b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
.inp::placeholder { color: #c8c5bf; }

/* Checkbox */
.check-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 22px; }
.check-row input { accent-color: #c0392b; width: 14px; height: 14px; cursor: pointer; }
.check-row label { font-size: 12px; color: #999; cursor: pointer; }

/* Botão */
.btn {
  width: 100%; padding: 13px;
  background: #c0392b; border: none; border-radius: 10px;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(192,57,43,0.30);
}
.btn:hover:not(:disabled)  { background: #a93226; box-shadow: 0 6px 24px rgba(192,57,43,0.38); }
.btn:active:not(:disabled) { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.8); fill: none; stroke-width: 2; stroke-linecap: round; }

.form-footer {
  text-align: center; margin-top: 28px;
  font-size: 10px; color: #ccc; line-height: 1.8;
}

/* Notificação de erro */
.alert-error {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #c0392b;
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(192,57,43,0.30);
  font-size: 13px;
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── RESPONSIVO PARA MOBILE ── */
@media (max-width: 768px) {
  .bg, .darken-left, .darken-bottom, .fade-to-white {
    display: none;
  }
  .screen {
    background: white;
  }
  .left {
    display: none;
  }
  .right {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 20px;
  }
  .layout {
    flex-direction: column;
    justify-content: center;
  }
  .form-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ── AJUSTES PARA TELAS MÉDIAS ── */
@media (max-width: 1200px) {
  .right {
    margin: 1rem 8rem 0 0;
  }
  .left {
    padding: 40px 32px;
  }
}

@media (max-width: 1000px) {
  .right {
    margin: 1rem 4rem 0 0;
  }
  .left {
    padding: 30px 24px;
  }
}

@media (max-width: 900px) {
  .right {
    margin: 1rem 2rem 0 0;
  }
}
