/* Reset básico para body e html */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a1a2b, #1a2a4b);
  color: #0a1a2b;
}

/* Container geral com altura mínima para preencher a tela */
.fundoGradient {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background: linear-gradient(285.94deg, rgba(255, 255, 255, 0.4) -6.33%, rgba(30, 184, 231, 0.9) 80.85%);
}

/* Caixa branca translúcida com sombra e borda arredondada */
.login-container {
  background-color: rgba(255 255 255 / 0.95);
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.15);
  user-select: none;
  transition: transform 0.3s ease;
}

.login-container:hover {
  transform: translateY(-3px);
}

/* Logo no topo centralizado */
.login-logo {
  display: block;
  margin: 0 auto 24px auto;
  max-width: 160px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

/* Título */
h2 {
  text-align: center;
  margin-bottom: 32px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #0a1a2b;
  user-select: text;
}

/* Mensagens de erro e sucesso */
.error-message {
  background-color: #ef4444;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 8px #ef4444aa;
  user-select: none;
}

.sucesso-message {
  background-color: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 8px #10b981aa;
  user-select: none;
}

/* Formulário e inputs */
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.login-form select {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1.8px solid #cbd5e1; /* cinza claro */
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
  background-color: white;
  color: #0a1a2b;
  user-select: text;
}

.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 8px #3b82f6cc;
}

/* Selects lado a lado (dia, mes, ano) */
.login-form > div[style*="display:flex"] {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.login-form > div[style*="display:flex"] select {
  flex: 1;
}

/* Botões */
.form-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}

.btn {
  flex: 1;
  padding: 16px 0;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: white;
  text-decoration: none;
  text-align: center;
  user-select: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}

.btn.criar-conta {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn.criar-conta:hover {
  background: linear-gradient(90deg, #2563eb, #0891b2);
  transform: scale(1.05);
}

.btn.entrar {
  background: #e0e7ff;
  color: #3b82f6;
  line-height: 40px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn.entrar:hover {
  background: #c7d2fe;
  color: #1e40af;
  transform: scale(1.05);
}

/* Texto de rodapé */
.footer-bottom {
  border-top: 1px solid #333;
  padding: 15px 20px;
  text-align: center;
  font-size: 13px;
  color: #ccc;
  font-family: 'Arial', sans-serif;
  line-height: 1.5;
  background-color: #1a1a1a;
  user-select: none;
}

/* Footer */

.footer-section {
  background: #1a1a1a;
  /* fundo preto suave */
  color: #d0d0d0;
  /* texto cinza claro */
  padding: 50px 20px 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.03);
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-column {
  flex: 1;
  min-width: 280px;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
}

.footer-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: #333333;
  box-shadow: 0 0 5px rgba(50, 50, 50, 0.5);
  border-radius: 1px;
}

@media (max-width: 850px) {
  .footer-column:not(:last-child)::after {
    display: none;
  }
}

.footer-column.socials {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column.socials p {
  color: #aaa;
  /* cinza claro */
  line-height: 1.5;
}

.social-icons-footer {
  display: flex;
  gap: 20px;
}

.social-icons-footer a {
  display: inline-flex;
  width: 52px;
  height: 52px;
  background: #222222;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.social-icons-footer a:hover {
  background-color: #444444;
  animation: pulseGlow 1.5s infinite;
  transform: scale(1.15);
  filter: drop-shadow(0 6px 12px rgba(68, 68, 68, 0.9));
}

.social-icons-footer a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 8px 2px rgba(68, 68, 68, 0.7);
  }

  50% {
    box-shadow: 0 0 15px 5px rgba(68, 68, 68, 1);
  }
}

.footer-column.center-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  line-height: 1.4;
  user-select: text;
}

.footer-column.last-registered {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  user-select: none;
}

.footer-column.last-registered h4 {
  font-weight: 700;
  color: #999999;
  margin-bottom: 10px;
}

.avatars-registrados {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-height: 110px;
  overflow-y: auto;
  padding-bottom: 6px;
  justify-content: flex-end;
  position: relative;
}

.avatars-registrados::-webkit-scrollbar {
  height: 6px;
}

.avatars-registrados::-webkit-scrollbar-thumb {
  background-color: #555555;
  border-radius: 3px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #444444;
  background-color: #222222;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.avatar::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #444444cc;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  user-select: none;
  box-shadow: 0 0 10px #444444aa;
}

.avatar:hover::after {
  opacity: 1;
}

.avatar:hover {
  transform: scale(1.2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Responsividade */
@media (max-width: 850px) {
  .container-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-column.last-registered {
    align-items: center;
  }

  .avatars-registrados {
    justify-content: center;
  }

  .footer-column:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }
  .login-form > div[style*="display:flex"] {
    flex-direction: column;
    gap: 10px;
  }
  .form-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
