/**
 * Premium Login Page Styles
 * Glassmorphism, gradients, animations, and responsive design
 * No external libraries - Pure CSS3 + HTML5
 */

/* Root variables for theming */
:root {
  /* Tokens alinhados ao styles.css — apenas sobrescreve os necessários
     para a tela de login (contexto sem sidebar/topbar). */
  --primary:          #0F4F55;
  --primary-dark:     #0D4249;
  --primary-navy:     #16324F;
  --primary-medium:   #2E7D6B;
  --secondary:        #007F78;
  --accent:           #3FAE8A;
  --accent-glow:      #3FAE8A;
  --accent-hover:     #2D9578;
  --accent-light:     #57C9A5;

  --background:       #F2F6F8;
  --surface:          #FFFFFF;
  --text-primary:     #0D1B1E;
  --text-secondary:   #5A6E73;
  --text-muted:       #8EA3A8;
  --border:           #D0DFE4;

  --success:          #059669;
  --error:            #DC2626;

  --radius:           8px;
  --radius-md:        12px;
  --radius-lg:        16px;

  --shadow-sm:        0 2px 8px rgba(13,66,73,0.06);
  --shadow-md:        0 4px 20px rgba(13,66,73,0.10);
  --shadow-lg:        0 20px 56px rgba(13,66,73,0.14);

  --transition-fast:  0.14s ease;
  --transition:       0.22s ease;
  --font-sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Aliases de compat com código legado do login.css */
  --bg-light:         #F2F6F8;
  --bg-card:          #FFFFFF;
  --text-dark:        #0D1B1E;
  --text-light:       #5A6E73;
  --border-color:     #D0DFE4;
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ============================================
   LOGIN PAGE LAYOUT
   ============================================ */

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
}

/* Hero Section (Left Panel)
   O gradiente de marca real vem da regra .auth-hero em "AcomGest 2026 visual refresh",
   mais abaixo neste arquivo, que sobrescreve o background definido aqui. */
.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* Background animations in hero */
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(46, 204, 113, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(42, 168, 86, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite;
  z-index: 1;
}

/* Animated background watermark */
.auth-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-size: 300px 300px;
  background-repeat: repeat;
  animation: float 20s ease-in-out infinite;
  z-index: 2;
}

/* Hero content container */
.auth-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 400px;
  animation: fadeInDown 0.8s ease-out;
}

/* Logo styling */
.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Hero title and subtitle */
.auth-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.auth-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  line-height: 1.8;
}

.auth-proof-list {
  width: min(390px, 100%);
  margin: 22px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.auth-proof-list li {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 11px 8px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 10px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.auth-proof-list li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--text-primary);
  background: #baf5df;
  font-size: .75rem;
  font-weight: 900;
}

.auth-progress {
  display: grid;
  grid-template-columns: auto minmax(34px, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--text-secondary);
}

.auth-progress > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .74rem;
  font-weight: 800;
}

.auth-progress strong {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #c8d8d3;
  border-radius: 50%;
  background: #f5faf8;
}

.auth-progress > i { height: 2px; border-radius: 999px; background: #dbe7e3; }
.auth-progress > span.active { color: #086f6b; }
.auth-progress > span.active strong { color: #fff; border-color: #086f6b; background: #086f6b; box-shadow: 0 0 0 4px rgba(8, 111, 107, .12); }
.auth-progress > span.completed strong { color: #fff; border-color: #329c7c; background: #329c7c; }
.auth-progress > span.completed + i { background: #8ac4ae; }

.verification-card { text-align: center; }
.verification-status {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 8px 0 22px;
  padding: 22px 16px;
  border: 1px solid #d4e3de;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7fbfa, #eff7f4);
}
.verification-status-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  color: #086f6b;
  background: #dff4ec;
  box-shadow: 0 12px 28px rgba(8, 111, 107, .16);
}
.verification-status-icon svg { width: 31px; height: 31px; }
.verification-status p { margin: 0; color: var(--text-secondary); font-weight: 750; line-height: 1.5; }
.verification-status[data-verification-state="loading"] .verification-status-icon { animation: verificationPulse 1.4s ease-in-out infinite; }
.verification-status[data-verification-state="success"] { border-color: #b7dfcf; background: #eaf8f1; }
.verification-status[data-verification-state="success"] .verification-status-icon { color: #fff; background: #329c7c; }
.verification-status[data-verification-state="error"] { border-color: #f0c3bd; background: #fff3f1; }
.verification-status[data-verification-state="error"] .verification-status-icon { color: #fff; background: #c9594b; box-shadow: 0 12px 28px rgba(201, 89, 75, .18); }
.verification-resend-button { width: 100%; margin-top: 9px; }
.verification-links { justify-content: center; margin-top: 16px; }

@keyframes verificationPulse {
  50% { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(8, 111, 107, .24); }
}

/* Form Section (Right Panel) */
.auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

/* Form card with glassmorphism */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  animation: slideInRight 0.8s ease-out;
}

.auth-card-header {
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.auth-card-header h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.auth-card-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Form fields */
.auth-form {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-dark);
  transition: all var(--transition-medium);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: white;
  box-shadow: 0 0 0 3px rgba(74, 157, 95, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

/* Campo de senha com botão de mostrar/ocultar embutido */
.password-field {
  position: relative;
}

.password-field .form-input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 6px;
}

.password-toggle:hover {
  color: var(--text-dark);
  background: rgba(23, 78, 83, 0.06);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Alternância "Cadastrar fazenda" / "Tenho um convite" no cadastro */
.auth-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-mode-tab {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-light);
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-mode-tab.active {
  background: #174E53;
  border-color: #174E53;
  color: #FFFFFF;
}

.auth-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Checkbox styling */
.form-checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: var(--primary-light);
}

.form-checkbox-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}

/* Submit button */
.btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary-light);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 15px rgba(74, 157, 95, 0.3);
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 157, 95, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: rgba(74, 157, 95, 0.05);
}

/* Links */
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.auth-link {
  color: var(--primary-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.auth-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width var(--transition-fast);
}

.auth-link:hover::after {
  width: 100%;
}

/* Form footer */
.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.auth-footer-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.auth-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-footer-link {
  font-size: 0.85rem;
  color: var(--primary-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.auth-footer-link:hover {
  color: var(--accent-light);
}

/* Version badge */
.version-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(2deg);
  }
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Loading state */
.btn-primary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   ERROR AND SUCCESS STATES
   ============================================ */

.form-error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  animation: slideInRight 0.3s ease-out;
}

.form-success {
  color: #27ae60;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.input-error {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.05) !important;
}

.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

.toast.success {
  border-left: 4px solid #27ae60;
}

.toast.error {
  border-left: 4px solid #e74c3c;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    display: none;
  }

  .auth-form-section {
    padding: 1rem;
  }

  .auth-card {
    max-width: 100%;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .auth-card-header h2 {
    font-size: 1.5rem;
  }

  .auth-hero h1 {
    font-size: 2rem;
  }

  .form-input {
    padding: 0.75rem 0.875rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.25rem;
  }

  .auth-card-header h2 {
    font-size: 1.25rem;
  }

  .auth-card-header p {
    font-size: 0.85rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .auth-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .auth-link {
    display: block;
    text-align: center;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.95);
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
  }

  .form-input {
    background: #1e293b;
    color: var(--text-dark);
  }

  .form-input:focus {
    background: #334155;
  }

  .toast {
    background: #1e293b;
    color: var(--text-dark);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* AcomGest 2026 visual refresh */
.auth-page {
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  background:
    radial-gradient(circle at 12% 16%, rgba(87, 201, 165, 0.22), transparent 28%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 52%, #1B3A5C 100%);
}

.auth-hero {
  background:
    linear-gradient(150deg, rgba(15, 79, 85, 0.96) 0%, rgba(22, 50, 79, 0.94) 55%, rgba(46, 125, 107, 0.90) 100%),
    radial-gradient(circle at 20% 20%, rgba(87, 201, 165, 0.26), transparent 28%);
  padding: clamp(2rem, 6vw, 5rem);
}

.auth-hero::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(87, 201, 165, 0.22), transparent 26%),
    radial-gradient(circle at 76% 58%, rgba(255, 255, 255, 0.10), transparent 28%),
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.06) 44% 45%, transparent 45% 100%);
  animation: gradientShift 18s ease-in-out infinite;
}

.auth-hero::after {
  opacity: 0.12;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
}

.auth-hero-content {
  max-width: 460px;
}

.auth-logo {
  width: min(260px, 72vw);
  height: auto;
  min-height: 132px;
  margin-bottom: 2.25rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: fadeInDown 0.7s ease-out;
}

.auth-logo-image {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.22));
}

.auth-hero h1 {
  max-width: 16ch;
  margin-inline: auto;
  color: #FFFFFF;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-hero p {
  max-width: 34rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

/* ============================================
   TECH WAVES — fundo animado, presente em toda
   a experiência de autenticação (login, cadastro,
   recuperação de senha), atrás do conteúdo do hero.
   ============================================ */
.tech-waves {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: -400px;
  right: -400px;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  background-size: 400px 100%;
}

.wave-1 {
  bottom: 0;
  height: 55%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='%238AC4AE' d='M0,60 C50,20 100,100 200,60 C300,20 350,100 400,60 L400,120 L0,120 Z'/%3E%3C/svg%3E");
  opacity: 0.22;
  animation: techWaveDriftSlow 24s linear infinite;
}

.wave-2 {
  bottom: 6%;
  height: 45%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='none' stroke='%23FFFFFF' stroke-width='2' d='M0,72 C50,42 100,102 200,72 C300,42 350,102 400,72'/%3E%3C/svg%3E");
  opacity: 0.16;
  animation: techWaveDriftFast 15s linear infinite reverse;
}

.wave-3 {
  bottom: 16%;
  height: 34%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='%23329C7C' d='M0,80 C40,30 90,110 160,70 C230,30 300,110 400,60 L400,120 L0,120 Z'/%3E%3C/svg%3E");
  opacity: 0.14;
  animation: techWaveDriftSlowest 32s linear infinite;
}

@keyframes techWaveDriftSlow {
  from { background-position-x: 0; }
  to { background-position-x: -400px; }
}

@keyframes techWaveDriftFast {
  from { background-position-x: 0; }
  to { background-position-x: 400px; }
}

@keyframes techWaveDriftSlowest {
  from { background-position-x: 0; }
  to { background-position-x: -400px; }
}

.auth-form-section {
  background:
    radial-gradient(circle at 82% 14%, rgba(138, 196, 174, 0.30), transparent 24%),
    linear-gradient(180deg, #FFFFFF 0%, #F2F8F5 100%);
}

.auth-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(138, 196, 174, 0.18) 58% 100%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  max-width: 460px;
  border: 1px solid rgba(23, 78, 83, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(23, 78, 83, 0.18);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #329C7C, #086F6B, #174E53);
}

.auth-card-header h2 {
  color: var(--text-primary);
  font-size: 1.9rem;
  letter-spacing: 0;
}

.auth-card-header p,
.auth-footer-text,
.auth-footer-links {
  color: var(--text-secondary);
}

.form-label {
  color: var(--text-primary);
}

.form-input {
  min-height: 46px;
  border: 1px solid rgba(93, 109, 115, 0.22);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-primary);
}

.form-input:focus {
  border-color: #086F6B;
  box-shadow: 0 0 0 4px rgba(138, 196, 174, 0.34);
}

.form-checkbox {
  accent-color: #2E7D6B;
}

.btn-primary {
  min-height: 48px;
  border-radius: 10px;
  background: #57C9A5;
  color: #0F4F55;
  border: 1px solid #4AB793;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(87, 201, 165, 0.32);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover:not(:disabled) {
  background: #46BA95;
  color: #083B40;
  border-color: #3AAE88;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(87, 201, 165, 0.42);
}

.auth-link {
  color: #2E7D6B;
  font-weight: 700;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: #0F4F55;
  text-decoration: underline;
}

.form-error {
  color: #DC2626;
}

.toast.success {
  border-left-color: #57C9A5;
}

@media (max-width: 968px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 38vh;
  }

  .auth-logo {
    width: min(220px, 68vw);
    min-height: 104px;
  }
}

@media (max-width: 640px) {
  .auth-proof-list { grid-template-columns: 1fr; max-width: 300px; margin-top: 15px; }
  .auth-proof-list li { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 8px 10px; }
  .auth-progress > span { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wave,
  .verification-status[data-verification-state="loading"] .verification-status-icon,
  .btn-primary,
  .auth-link { animation: none !important; transition: none !important; }
}


/* =========================================================
   ACOMGEST PREMIUM REDESIGN - 1:1 WITH MOCKUP 2
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #EAF0EE !important;
  padding: 32px 20px;
}

.auth-container {
  display: grid;
  grid-template-columns: 440px 520px;
  width: 100%;
  max-width: 960px;
  min-height: 620px;
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 79, 85, 0.12), 0 4px 18px rgba(15, 79, 85, 0.04);
}

/* LEFT HERO PANEL */
.auth-hero {
  background: linear-gradient(150deg, #0A383C 0%, #0F4F55 45%, #16324F 100%) !important;
  padding: 44px 38px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.auth-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -30%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 201, 165, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.auth-hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 125, 107, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.auth-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
}

.auth-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.auth-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: #8AC4AE;
  letter-spacing: 0.2px;
}

.auth-hero-body {
  margin: 32px 0;
  position: relative;
  z-index: 2;
}

.auth-hero-title {
  font-size: 36px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #FFFFFF !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.6px !important;
  text-align: left !important;
}

.auth-hero-title .hero-accent {
  color: #3FAE8A;
}

.auth-hero-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
  max-width: 340px;
  text-align: left;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 11px 14px;
  backdrop-filter: blur(8px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(63, 174, 138, 0.16);
  color: #57C9A5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.feature-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.feature-text span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
}

/* RIGHT FORM PANEL */
.auth-form-section {
  background: #FFFFFF !important;
  padding: 38px 46px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative;
}

.auth-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.lang-selector:hover {
  background: #F1F5F9;
  color: #334155;
}

.auth-card {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.auth-card-header {
  margin-bottom: 24px !important;
  text-align: left !important;
}

.auth-card-header h2 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.5px !important;
}

.auth-card-header p {
  font-size: 13.5px !important;
  color: #64748B !important;
  margin: 0 !important;
}

.auth-form .form-group {
  margin-bottom: 18px !important;
  text-align: left !important;
}

.auth-form .form-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

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

.field-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.auth-form .form-input {
  width: 100% !important;
  height: 48px !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 0 14px 0 44px !important;
  font-size: 14px !important;
  color: #0F172A !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-form .form-input:focus {
  border-color: #0F4F55 !important;
  box-shadow: 0 0 0 3px rgba(15, 79, 85, 0.12) !important;
  outline: none !important;
}

.password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.password-toggle:hover {
  color: #475569;
}

.form-row-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #334155;
  font-weight: 500;
  user-select: none;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #0F4F55;
  cursor: pointer;
}

.auth-link-forgot {
  color: #2774E6;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-link-forgot:hover {
  text-decoration: underline;
  color: #1A5EC2;
}

.btn-primary {
  width: 100% !important;
  height: 48px !important;
  border-radius: 10px !important;
  background: #0F4F55 !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(15, 79, 85, 0.22) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover:not(:disabled) {
  background: #09373B !important;
  box-shadow: 0 6px 18px rgba(15, 79, 85, 0.32) !important;
  transform: translateY(-1px) !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: #94A3B8;
  font-size: 12.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.auth-divider span {
  padding: 0 12px;
}

.btn-google {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-google:hover:not(:disabled) {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-google:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-signup-prompt {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: #64748B;
}

.auth-signup-prompt .link-signup {
  color: #2E7D6B;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.auth-signup-prompt .link-signup:hover {
  text-decoration: underline;
  color: #1E5C4E;
}

@media (max-width: 960px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-hero {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   ACOMGEST LOGIN — MODERNIZAÇÃO v5 (match Mockup 2)
   Layout: hero escuro à esquerda (45%) + form panel branco à direita
   ═══════════════════════════════════════════════════════════════════ */

/* AUTH PAGE */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--background);
  font-family: var(--font-sans);
}

/* Container principal */
.auth-container {
  display: grid;
  grid-template-columns: 44% 56%;
  width: 100%;
  min-height: 100vh;
}

/* ── HERO PANEL (esquerdo, escuro) ── */
.auth-hero {
  background:
    radial-gradient(circle at 18% 85%, rgba(63,174,138,0.28) 0%, transparent 42%),
    radial-gradient(circle at 82% 15%, rgba(22,50,79,0.55) 0%, transparent 50%),
    linear-gradient(160deg, #0D4249 0%, #0F4F55 40%, #16324F 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px;
  position: relative;
  overflow: hidden;
}

/* Swoosh decorativo */
.auth-hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,174,138,0.18), transparent 70%);
  pointer-events: none;
}
.auth-hero::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,174,138,0.12), transparent 70%);
  pointer-events: none;
}

/* Logo na hero */
.auth-hero-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 52px;
}
.auth-hero-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 4px;
}
.auth-hero-logo-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}
.auth-hero-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.03em;
}

/* Headline */
.auth-hero-headline {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #FFFFFF;
  margin-bottom: 18px;
}
.auth-hero-headline em {
  font-style: normal;
  color: var(--accent-light);
}

.auth-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Feature list */
.auth-hero-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
.auth-hero-features li .feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(63,174,138,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-light);
}
.auth-hero-features li .feat-icon svg {
  width: 17px;
  height: 17px;
}

/* ── FORM PANEL (direito, branco) ── */
.auth-form-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 56px;
  background: var(--surface);
  position: relative;
}

.auth-form-inner {
  width: 100%;
  max-width: 400px;
}

/* Lang selector */
.auth-lang {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

/* Form heading */
.auth-form-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.auth-form-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Form group */
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-input-wrap {
  position: relative;
}
.auth-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}
.auth-input-icon svg {
  width: 17px;
  height: 17px;
}
.auth-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 42px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63,174,138,0.16);
}
.auth-input-wrap input::placeholder { color: var(--text-muted); }

.auth-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
}
.auth-input-toggle svg { width: 17px; height: 17px; }
.auth-input-toggle:hover { color: var(--text-primary); }

/* Remember + forgot */
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 22px;
}
.auth-remember-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  cursor: pointer;
}
.auth-forgot {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.auth-forgot:hover { color: var(--accent); }

/* Submit button */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  margin-bottom: 14px;
}
.auth-submit-btn:hover:not(:disabled) {
  background: #0D4249;
  box-shadow: 0 6px 20px rgba(13,66,73,0.28);
}
.auth-submit-btn:active { transform: scale(0.98); }
.auth-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-submit-btn svg { width: 18px; height: 18px; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Google button */
.auth-google-btn {
  width: 100%;
  height: 46px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: 22px;
}
.auth-google-btn:hover {
  background: var(--background);
  border-color: var(--border-strong, #B3CACF);
}
.auth-google-logo {
  width: 20px;
  height: 20px;
}

/* Sign up link */
.auth-signup-row {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-signup-row a,
.auth-signup-row button {
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.auth-signup-row a:hover,
.auth-signup-row button:hover { color: var(--accent); }

/* Error message */
.auth-error {
  background: #FEF2F2;
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--error, #DC2626);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}
.auth-error.visible { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
  .auth-form-section {
    padding: 40px 24px;
    min-height: 100vh;
  }
}
@media (max-width: 480px) {
  .auth-form-section { padding: 28px 16px; }
  .auth-form-title { font-size: 22px; }
}

/* ═══ FIM — ACOMGEST LOGIN v5 ═══ */
