/* ================= AUTH (Login + Registro) ================= */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 40px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* Painel visual */
.auth-brand {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 140, 255, 0.25) 0%, transparent 50%);
}

.auth-brand > * {
  position: relative;
  z-index: 1;
}

.auth-brand .logo {
  height: 80px;
  width: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
}

.auth-brand h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.auth-brand h1 span {
  color: #008cff;
}

.auth-brand p {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 320px;
}

/* Formulário */
.auth-form {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.auth-form > p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-fields input,
.auth-fields select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-fields input::placeholder {
  color: #94a3b8;
}

.auth-fields input:focus,
.auth-fields select:focus {
  border-color: #008cff;
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.1);
  outline: none;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Botão */
.btn-auth {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  background: #008cff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 140, 255, 0.3);
}

.btn-auth:hover {
  background: #006fd6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 140, 255, 0.35);
}

/* Link inferior */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-footer a {
  color: #008cff;
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #006fd6;
  text-decoration: underline;
}

/* Plano select */
.plano-select {
  position: relative;
  margin-bottom: 20px;
}

.plano-select label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #475569;
}

.plano-dropdown {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  font-size: 0.95rem;
}

.plano-dropdown:hover {
  border-color: #008cff;
}

.plano-lista {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.plano-lista li {
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.plano-lista li:hover {
  background: #f1f5f9;
}

.plano-lista strong {
  display: block;
  color: #1e293b;
  font-weight: 600;
}

.plano-lista span {
  font-size: 0.85rem;
  color: #64748b;
}

.plano-select.ativo .plano-lista {
  display: flex;
}

.plano-select.ativo .plano-dropdown {
  border-color: #008cff;
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.1);
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-brand {
    display: none;
  }

  .auth-form {
    padding: 40px 28px;
  }
}

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