/* ==========================================
   ARQUIVO: arquivos/css/auth.css
   ESTILO DAS TELAS DE LOGIN E CADASTRO (área do cliente)
   ========================================== */

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

:root {
  --auth-primaria: #6c5ce7;
  --auth-primaria-escura: #5847d1;
  --auth-primaria-clara: #a599f5;
  --auth-fundo: #f5f6fa;
  --auth-texto: #1f2430;
  --auth-texto-secundario: #6b7280;
  --auth-borda: #e2e4ea;
  --auth-raio: 14px;
}

body {
  margin: 0;
  background: var(--auth-fundo);
  color: var(--auth-texto);
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.auth-wrap {
  display: flex;
  min-height: 100vh;
}

/* ---------- Painel visual (esquerda) ---------- */

.auth-visual {
  position: relative;
  flex: 0 0 56%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 3rem;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.55) 0%, rgba(10, 10, 20, 0.35) 45%, rgba(10, 10, 20, 0.8) 100%);
}

.auth-voltar,
.auth-visual-content,
.auth-copyright {
  position: relative;
  z-index: 1;
}

.auth-voltar {
  position: absolute;
  top: 2rem;
  left: 3rem;
  z-index: 1;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.auth-voltar:hover {
  opacity: 1;
  color: #fff;
}

.auth-visual-content h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.auth-visual-content h1 .accent {
  color: var(--auth-primaria-clara);
}

.auth-visual-content p {
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.auth-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Painel do formulário (direita) ---------- */

.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(31, 36, 48, 0.08);
  padding: 2.75rem 2.5rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-logo img {
  max-height: 42px;
}

.auth-logo-fallback {
  display: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--auth-texto);
}

.auth-subtitle {
  text-align: center;
  color: var(--auth-texto-secundario);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.auth-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-texto-secundario);
  margin-bottom: 0.4rem;
}

.auth-input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon svg {
  position: absolute;
  left: 0.9rem;
  width: 18px;
  height: 18px;
  color: #9aa0ac;
  pointer-events: none;
}

.auth-input-icon .form-control {
  padding-left: 2.6rem;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--auth-borda);
  font-size: 0.95rem;
}

.auth-input-icon .form-control.tem-botao-senha {
  padding-right: 2.75rem;
}

.auth-input-icon .form-control:focus {
  border-color: var(--auth-primaria);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.auth-toggle-senha {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  padding: 0.25rem;
  color: #9aa0ac;
  cursor: pointer;
  line-height: 0;
}

.auth-toggle-senha:hover {
  color: var(--auth-texto-secundario);
}

.auth-toggle-senha svg {
  width: 18px;
  height: 18px;
}

.auth-row-opcoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0 1.5rem;
  font-size: 0.9rem;
}

.auth-link {
  color: var(--auth-primaria);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  color: var(--auth-primaria-escura);
  text-decoration: underline;
}

.auth-btn {
  background: var(--auth-primaria);
  border: none;
  color: #fff;
  font-weight: 700;
  height: 48px;
  border-radius: 10px;
  font-size: 0.98rem;
  transition: background-color 0.15s ease;
}

.auth-btn:hover {
  background: var(--auth-primaria-escura);
  color: #fff;
}

.auth-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--auth-primaria-clara);
  outline-offset: 2px;
}

.auth-footer-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--auth-texto-secundario);
  margin: 1.75rem 0 0;
}

.auth-alerta {
  font-size: 0.9rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .auth-visual {
    display: none;
  }

  .auth-form-side {
    flex: 1 0 100%;
    min-height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
