:root {
  --bg: #071a3d;
  --bg-soft: #0b2452;
  --bg-light: #12386e;

  --white: #ffffff;
  --primary: #f47a20;
  --primary-dark: #d9630d;

  --secondary: #0c234a;
  --secondary-dark: #06152f;

  --accent: #35a8e0;
  --accent-soft: #69c3ee;

  --text: #122033;
  --text-soft: #5f6f86;
  --text-light: #eaf4ff;

  --border: rgba(255, 255, 255, 0.10);
  --section-bg: #f3f7fc;

  --success: #188038;
  --danger: #d93025;

  --shadow-sm: 0 8px 25px rgba(3, 15, 38, 0.10);
  --shadow-md: 0 15px 40px rgba(3, 15, 38, 0.16);
  --shadow-lg: 0 20px 50px rgba(3, 15, 38, 0.24);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
  --container: 1200px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(53, 168, 224, 0.08), transparent 18%),
    linear-gradient(to bottom, #eef4fb, #f7fafe);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden; overflow-x: clip;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* UTILITÁRIOS */
.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(46, 59, 78, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 82px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

/* MAIN */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.auth-section {
  width: 100%;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
}

/* HERO LATERAL */
.auth-hero {
  background:
    radial-gradient(circle at top right, rgba(53, 168, 224, 0.14), transparent 25%),
    linear-gradient(135deg, #08214a 0%, #0c234a 45%, #12386e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Foto de topo (montagem): imagem nítida com fade suave descendo pro navy */
.auth-hero-media {
  position: relative;
  z-index: 1;
  height: 300px;
  overflow: hidden;
  /* Fundo azul da própria foto: brilho royal no topo -> navy nas bordas.
     Sem laranja (não usa mais a foto borrada, que puxava a camisa laranja). */
  background: radial-gradient(130% 100% at 50% 18%, #122a52 0%, #0c1f42 42%, #07152f 70%, #030b1c 100%);
}
/* ATRÁS: a mesma foto, mais larga e BORRADA (vidro fosco) — preenche as
   laterais com a foto embaçada em vez de azul chapado. */
.auth-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/agince-final.png?v=1") center 12% / auto 168% no-repeat;
  filter: blur(14px) saturate(0.92);
  transform: scale(1.02);
}
/* NA FRENTE: a imagem NÍTIDA no centro, esfumando pras laterais (máscara
   horizontal) -> centro em foco, esquerda/direita embaçadas. + fade de baixo. */
.auth-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.6) 78%, #0f172a 100%),
    url("img/agince-final.png?v=1") center 12% / auto 130% no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent 4%, #000 26%, #000 74%, transparent 96%);
  mask: linear-gradient(90deg, transparent 4%, #000 26%, #000 74%, transparent 96%);
}
.auth-hero-body {
  position: relative;
  z-index: 2;
  padding: 30px 42px 42px;
  margin-top: -34px; /* sobe o conteúdo pra encostar no fade da foto */
}

.auth-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -80px;
  right: -80px;
  filter: blur(6px);
}

.auth-hero > * {
  position: relative;
  z-index: 1;
}

.auth-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.auth-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 18px;
  font-weight: 800;
}

.auth-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.auth-highlights {
  display: grid;
  gap: 16px;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.hl-ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff9a3d);
  box-shadow: 0 8px 18px rgba(244, 122, 32, 0.35);
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* Selos de confiança do hero */
.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
}

.auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.auth-trust i {
  color: var(--primary);
}

/* CARD LOGIN / VERIFICAÇÃO */
.login-container,
.verification-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(12, 35, 74, 0.06);
}

.card-header {
  text-align: center;
  margin-bottom: 28px;
}

.card-header h2 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.card-header p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* FORM */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.form-group input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #d6dce5;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(244, 122, 32, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 122, 32, 0.14);
}

.form-group input::placeholder {
  color: #8b97a8;
}

/* SENHA */
.password-container {
  position: relative;
}

.password-container input {
  padding-right: 52px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #5f6f86;
  padding: 0;
}

.toggle-password:hover {
  color: var(--secondary);
  background: transparent;
}

/* LINKS */
.links-group {
  margin-top: -2px;
  margin-bottom: 20px;
}

.texto {
  text-align: center;
  margin-top: 10px;
}

.texto a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.texto a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* BOTÃO */
.btn-submit {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary), #ff9a3d);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 14px 28px rgba(244, 122, 32, 0.32);
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 122, 32, 0.40);
}

.btn-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

/* ERRO */
.error-message {
  color: var(--danger);
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 24px;
}

.error-message a {
  color: var(--danger);
  font-weight: 700;
}

/* FOOTER */
.footer {
  background-color: var(--secondary-dark);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  margin-top: auto;
}

.footer p {
  margin: 0;
}

/* RESPONSIVIDADE */
@media (max-width: 1080px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    text-align: center;
  }

  .login-container,
  .verification-card {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 28px 0;
  }

  /* No mobile a lateral fica enxuta: some com os cards Clientes/Profissionais */
  .auth-highlights { display: none; }

  .login-container,
  .verification-card {
    padding: 24px;
  }

  .auth-hero-body { padding: 22px 24px 24px; }
  .auth-hero-media { height: 190px; }

  .card-header h2 {
    font-size: 1.7rem;
  }

  .auth-hero h1 {
    font-size: 2rem;
  }

  .logo-img {
    height: 72px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .header {
    position: static;
  }

  .nav-container {
    min-height: 82px;
  }

  .logo-img {
    height: 62px;
  }

  .auth-hero h1 {
    font-size: 1.75rem;
  }

  .auth-hero p,
  .highlight-card p,
  .card-header p {
    font-size: 0.95rem;
  }

  .login-container,
  .verification-card {
    padding: 20px;
    border-radius: 20px;
  }

  .form-group input,
  .btn-submit {
    min-height: 50px;
    font-size: 15px;
  }

  .footer {
    font-size: 13px;
  }
}
/* =========================
   OVERRIDE DO LOGIN - MODO CLARO
   força textos escuros só nesta tela
========================= */

html:not([data-theme="dark"]) .login-container,
html:not([data-theme="dark"]) .verification-card{
  background:#ffffff !important;
  color:#122033 !important;
}

html:not([data-theme="dark"]) .card-header h2{
  color:#0c234a !important;
}

html:not([data-theme="dark"]) .card-header p{
  color:#5f6f86 !important;
}

html:not([data-theme="dark"]) .form-group label{
  color:#0c234a !important;
}

html:not([data-theme="dark"]) .form-group input{
  background:#ffffff !important;
  color:#122033 !important;
  border:1px solid #d6dce5 !important;
}

html:not([data-theme="dark"]) .form-group input::placeholder{
  color:#8b97a8 !important;
}

html:not([data-theme="dark"]) .toggle-password{
  color:#5f6f86 !important;
  background:transparent !important;
}

html:not([data-theme="dark"]) .toggle-password:hover{
  color:#0c234a !important;
  background:transparent !important;
}

html:not([data-theme="dark"]) .texto a{
  color:#0c234a !important;
}

html:not([data-theme="dark"]) .texto a:hover{
  color:#f47a20 !important;
}

html:not([data-theme="dark"]) .error-message,
html:not([data-theme="dark"]) .error-message a{
  color:#d93025 !important;
}html:not([data-theme="dark"]) .auth-hero,
html:not([data-theme="dark"]) .auth-hero h1,
html:not([data-theme="dark"]) .auth-hero p,
html:not([data-theme="dark"]) .auth-hero .auth-badge,
html:not([data-theme="dark"]) .highlight-card,
html:not([data-theme="dark"]) .highlight-card h3,
html:not([data-theme="dark"]) .highlight-card p{
  color:#ffffff !important;
}
/* ==========================================
   LOGIN - CORREÇÃO DO MODO CLARO
   força o claro só nesta tela
========================================== */
html:not([data-theme="dark"]) body{
  color:#122033 !important;
}

html:not([data-theme="dark"]) .login-container,
html:not([data-theme="dark"]) .verification-card{
  background:#ffffff !important;
  color:#122033 !important;
  border:1px solid rgba(12, 35, 74, 0.06) !important;
}

html:not([data-theme="dark"]) .login-container .card-header h2,
html:not([data-theme="dark"]) .verification-card .card-header h2{
  color:#0c234a !important;
}

html:not([data-theme="dark"]) .login-container .card-header p,
html:not([data-theme="dark"]) .verification-card .card-header p{
  color:#5f6f86 !important;
}

html:not([data-theme="dark"]) .login-container .form-group label,
html:not([data-theme="dark"]) .verification-card .form-group label{
  color:#0c234a !important;
}

html:not([data-theme="dark"]) .login-container .form-group input,
html:not([data-theme="dark"]) .verification-card .form-group input{
  background:#ffffff !important;
  color:#122033 !important;
  border:1px solid #d6dce5 !important;
  -webkit-text-fill-color:#122033 !important;
}

html:not([data-theme="dark"]) .login-container .form-group input::placeholder,
html:not([data-theme="dark"]) .verification-card .form-group input::placeholder{
  color:#8b97a8 !important;
  -webkit-text-fill-color:#8b97a8 !important;
}

html:not([data-theme="dark"]) .login-container .toggle-password,
html:not([data-theme="dark"]) .verification-card .toggle-password{
  color:#5f6f86 !important;
  background:transparent !important;
  border:none !important;
}

html:not([data-theme="dark"]) .login-container .toggle-password:hover,
html:not([data-theme="dark"]) .verification-card .toggle-password:hover{
  color:#0c234a !important;
  background:transparent !important;
}

html:not([data-theme="dark"]) .login-container .texto a,
html:not([data-theme="dark"]) .verification-card .texto a{
  color:#0c234a !important;
}

html:not([data-theme="dark"]) .login-container .texto a:hover,
html:not([data-theme="dark"]) .verification-card .texto a:hover{
  color:#f47a20 !important;
}

html:not([data-theme="dark"]) .login-container .error-message,
html:not([data-theme="dark"]) .login-container .error-message a,
html:not([data-theme="dark"]) .verification-card .error-message,
html:not([data-theme="dark"]) .verification-card .error-message a{
  color:#d93025 !important;
}

/* hero do login continua branco */
html:not([data-theme="dark"]) .auth-hero,
html:not([data-theme="dark"]) .auth-hero h1,
html:not([data-theme="dark"]) .auth-hero .auth-badge,
html:not([data-theme="dark"]) .auth-hero h3,
html:not([data-theme="dark"]) .auth-hero strong{
  color:#ffffff !important;
}

html:not([data-theme="dark"]) .auth-hero p,
html:not([data-theme="dark"]) .highlight-card p{
  color:rgba(255,255,255,.86) !important;
}
/* =========================
   AUTH HERO SEMPRE ESCURO
========================= */
.auth-hero{
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.15), transparent 25%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%) !important;

  color:#ffffff !important;
}

/* texto principal */
.auth-hero h1{
  color:#ffffff !important;
}

/* subtítulo */
.auth-hero p{
  color:rgba(255,255,255,0.85) !important;
}

/* badge */
.auth-hero .auth-badge{
  color:#ffffff !important;
  background:rgba(255,255,255,0.08) !important;
  border:1px solid rgba(255,255,255,0.15) !important;
}

/* cards internos */
.highlight-card{
  background:rgba(255,255,255,0.06) !important;
  border:1px solid rgba(255,255,255,0.10) !important;
}

/* títulos dos cards */
.highlight-card h3{
  color:#ffffff !important;
}

/* textos dos cards */
.highlight-card p{
  color:rgba(255,255,255,0.80) !important;
}

/* ============================================================
   CTA principal em LARANJA (marca). O tema global pinta
   button[type="submit"] de azul (--brand) com !important; este
   seletor (.auth-layout .btn-submit) tem especificidade maior e vence.
   Hex direto: o tema redefine var(--primary) p/ azul.
   ============================================================ */
.auth-layout .btn-submit{
  background: linear-gradient(135deg, #ff6b00, #ff9a3d) !important;
  color:#fff !important;
  box-shadow: 0 14px 28px rgba(244,122,32,.32) !important;
}
.auth-layout .btn-submit:hover{
  background: linear-gradient(135deg, #d9630d, #ff6b00) !important;
  box-shadow: 0 18px 34px rgba(244,122,32,.40) !important;
}
/* ============ AVISO DE ESPERA DO CODIGO DE ATIVACAO ============ */
/* Fica logo abaixo do texto do cabecalho, em tom de informacao (nao de erro): quem esta aqui
   nao errou nada, so precisa esperar. Amarelo/ambar em vez de vermelho por isso mesmo. */
/* O Login tem "html:not([data-theme=dark]) .verification-card .card-header p { color: !important }"
   (styles.css:634), que e' mais especifico. Repetir a mesma ancora aqui e' o que faz a cor do
   aviso valer nas duas telas sem sair empilhando seletor no escuro. */
html:not([data-theme="dark"]) .verification-card .card-header p.verificacao-espera,
html:not([data-theme="dark"]) .card-header p.verificacao-espera,
.card-header p.verificacao-espera,
.verificacao-espera {
  /* NAO usar flex: os <strong> do meio da frase virariam itens do flex e o texto quebraria em
     colunas ("O e-mail pode levar | alguns minutos | para chegar"). Texto corrido, com o icone
     inline. */
  display: block;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #f5d98a;
  color: #7a5606 !important;
  font-size: .9rem;
  line-height: 1.5;
}
.verificacao-espera span[aria-hidden] { margin-right: 6px; }

html[data-theme="dark"] .card-header p.verificacao-espera,
html[data-theme="dark"] .verificacao-espera {
  background: rgba(120, 92, 20, 0.22);
  border-color: rgba(216, 172, 64, 0.45);
  color: #f0d79a !important;
}
