/* ==========================================================================
   RESET E VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
  --bg-dark: #020817;
  --bg-white: #FFFFFF;
  --primary: #0066FF;
  --primary-hover: #0052cc;
  --color-cyan: #00D9FF;
  --color-purple: #7900FF;
  --color-blue: #0066FF;
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-color: #E5E7EB;
  --input-bg: #F8FAFC;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Regra de Ouro: Esconder inputs do Radio/Checkbox Hack */
.hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

/* ==========================================================================
   ESTRUTURA SPLIT-SCREEN
   ========================================================================== */
.split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* --- LADO ESQUERDO (50%) --- */
.left-pane {
  width: 50%;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse at 80% 20%, rgba(0, 102, 255, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 75%, rgba(121, 0, 255, 0.32) 0%, transparent 60%),
    radial-gradient(circle at 10% 50%, rgba(0, 217, 255, 0.12) 0%, transparent 50%),
    linear-gradient(145deg, #020817 0%, #030d24 45%, #050b1e 75%, #08031a 100%);
  color: #FFFFFF;
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Efeitos luminosos neon decorativos */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-cyan {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.22) 0%, transparent 70%);
  filter: blur(80px);
  top: 15%;
  left: 20%;
}

.glow-blue {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.26) 0%, transparent 70%);
  filter: blur(95px);
  top: -80px;
  right: -80px;
}

.glow-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(121, 0, 255, 0.28) 0%, transparent 70%);
  filter: blur(100px);
  bottom: -100px;
  right: -60px;
}

/* Ondas luminosas de fundo */
.wave-lines-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.neon-wave-svg {
  position: absolute;
  right: -10%;
  top: 0;
  width: 110%;
  height: 100%;
  pointer-events: none;
}

.brand-header,
.hero-content,
.hero-footer {
  position: relative;
  z-index: 2;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 58px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(0, 217, 255, 0.3));
}

.hero-content {
  max-width: 580px;
  margin: auto 0;
  padding: 1.5rem 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: rgba(4, 15, 38, 0.75);
  border: 1.5px solid;
  border-image: linear-gradient(135deg, #00D9FF 0%, #0066FF 50%, #7900FF 100%) 1;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1.85rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.25), inset 0 0 12px rgba(0, 217, 255, 0.15);
  position: relative;
}

/* Fix para border-radius com border-image */
.badge-pill {
  border: 1px solid rgba(0, 217, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(121, 0, 255, 0.15));
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.25), 0 0 35px rgba(121, 0, 255, 0.2);
}

.badge-pill::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 999px;
  padding: 1.5px;
  background: linear-gradient(135deg, #00D9FF, #0066FF, #7900FF);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.badge-icon {
  color: #00D9FF;
  filter: drop-shadow(0 0 6px #00D9FF);
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 1.65rem;
  color: #FFFFFF;
}

.gradient-text {
  background: linear-gradient(110deg, #00D9FF 0%, #0066FF 45%, #7900FF 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 24px rgba(0, 217, 255, 0.45));
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #C0CCE0;
  margin-bottom: 2.25rem;
  max-width: 550px;
}

.hero-desc strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* --- Barra de Recursos Tecnológica (Features Bar) --- */
.features-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 0.75rem;
  position: relative;
  max-width: 580px;
}

.feature-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 0.95rem;
  position: relative;
}

.feature-col-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 217, 255, 0.35) 50%, rgba(121, 0, 255, 0.05) 100%);
  flex-shrink: 0;
}

.feature-svg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.feature-svg-icon svg {
  display: block;
}

.feature-col:hover .feature-svg-icon {
  transform: translateY(-3px) scale(1.05);
}

/* Cores e Neons específicos dos ícones */
.icon-card {
  color: #00D9FF;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.75)) drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.icon-nfc {
  color: #C044FF;
  filter: drop-shadow(0 0 10px rgba(192, 68, 255, 0.8)) drop-shadow(0 0 22px rgba(121, 0, 255, 0.5));
}

.icon-qr {
  color: #00D9FF;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.75)) drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.icon-link {
  color: #C044FF;
  filter: drop-shadow(0 0 10px rgba(192, 68, 255, 0.8)) drop-shadow(0 0 22px rgba(121, 0, 255, 0.5));
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-footer p {
  font-size: 0.85rem;
  color: #71839e;
}

.hero-footer strong {
  color: #CBD5E1;
}

.mobile-brand-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* --- LADO DIREITO (50%) --- */
.right-pane {
  width: 50%;
  background-color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  overflow-y: auto;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

/* Marca mobile (escondida no Desktop) */
.mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.mobile-brand .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

/* ==========================================================================
   SISTEMA DE ABAS (RADIO HACK)
   ========================================================================== */
.tabs-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.tab-btn {
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.tab-btn:hover {
  color: var(--text-main);
}

/* Esconde os painéis por padrão */
.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

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

/* Lógica do Radio Hack: Destaca a aba ativa e exibe o painel correspondente */
#tab-login:checked ~ .tabs-switcher label[for="tab-login"],
#tab-register:checked ~ .tabs-switcher label[for="tab-register"] {
  background-color: var(--bg-white);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#tab-login:checked ~ .panel-login {
  display: block;
}

#tab-register:checked ~ .panel-register {
  display: block;
}

/* ==========================================================================
   ELEMENTOS DO FORMULÁRIO
   ========================================================================== */
.panel-header {
  margin-bottom: 1.5rem;
}

.panel-header h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.panel-header p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Botão Google */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-google:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.825rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 0.875rem;
}

/* Grupos de Input */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Regra de Ouro: Altura mínima de 48px e bordas suaves (#E5E7EB) */
.form-group input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder {
  color: #9CA3AF;
  letter-spacing: 0.02em;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Campo de Senha com Ícone de Olho */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

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

.eye-icon {
  position: absolute;
  right: 0.875rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.eye-icon:hover {
  color: var(--text-secondary);
}

/* Campo de Telefone em Destaque */
.highlight-field {
  background-color: #F8FAFC;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px dashed #CBD5E1;
}

.badge-featured {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #DBEAFE;
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.field-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}

.auth-message {
  padding: 0.85rem 1rem;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 0.875rem;
  line-height: 1.45;
}

.btn-google {
  text-decoration: none;
}

.account-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #F8FAFC;
}

.account-card {
  width: min(100%, 32rem);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.account-card h1 {
  margin: 1.5rem 0 0.5rem;
}

.account-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.account-card dl {
  margin-bottom: 1.5rem;
}

.account-card dt {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.account-card dd {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

.account-card > a.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.account-card .card-link {
  margin: 1rem 0 1.5rem;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.account-card .card-link a {
  color: var(--primary);
}

/* Checkboxes e Links */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
  line-height: 1.4;
}

.checkbox-container input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.forgot-link,
.terms-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.forgot-link:hover,
.terms-box a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Botão Azul Principal */
.btn-primary {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #0066FF 0%, #0052cc 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  margin-top: 0.25rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052cc 0%, #003da8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.45);
}

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

/* ==========================================================================
   3. MODAL "COMPLETAR CADASTRO" (CHECKBOX HACK)
   ========================================================================== */
.modal-completar {
  display: none; /* Oculto por padrão */
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Ativa o modal quando o checkbox #modal-google está marcado */
#modal-google:checked ~ .modal-completar {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  text-align: center;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: #F1F5F9;
  color: var(--text-main);
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.modal-card .form-group {
  text-align: left;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1200px) {
  .left-pane {
    padding: 2.5rem 2.5rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .features-bar {
    max-width: 480px;
  }

  .feature-svg-icon svg {
    width: 36px;
    height: 36px;
  }

  .feature-title {
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  /* No celular e tablet menor, a coluna esquerda oculta e a direita ocupa tudo */
  .left-pane {
    display: none;
  }

  .right-pane {
    width: 100%;
    padding: 2.5rem 1.25rem;
  }

  .mobile-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 1.75rem 1.35rem;
  }
}


.eye-toggle-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s ease;
}

.eye-toggle-btn:hover,
.eye-toggle-btn:focus-visible {
  color: var(--primary);
  outline: 2px solid var(--primary);
}


.icon-eye-open,
.icon-eye-closed {
  display: block;
}
