html, body {
  margin: 0;
  padding: 0;
  background: #0d0d0d; /* mesma cor de fundo do seu gradiente */
}

/* Container geral centralizado */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(circle, #142d3c 0%, #0d0d0d 100%);
  padding: 2rem;
  margin: 0;
  overflow: hidden;
}

.password-requirements {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  line-height: 1.5;
}
.text-green {
  color: #28a745;
}
.text-red {
  color: #dc3545;
}

/* Cartão do formulário */
.auth-card {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 
    0 0 30px rgba(0, 255, 136, 0.2),
    0 0 60px rgba(0, 255, 136, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid #222;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(0, 255, 136, 0.05) 0%,
    rgba(0, 255, 136, 0) 50%
  );
  transform: rotate(30deg);
  pointer-events: none;
}

.auth-card h2 {
  color: #00ff88;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  position: relative;
}

/* Formulário */
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.auth-card input {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 8px;
  border: 1px solid #333;
  outline: none;
  background: #1e1e1e;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.auth-card input:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  transition: color 0.3s;
}

.auth-card input:focus + .input-icon {
  color: #00ff88;
}

.password-strength {
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-top: 1rem; /* aumentei aqui */
  margin-bottom: 0.5rem; /* opcional: dá espaço antes do texto "A senha deve..." */
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  background: #ff5555;
  transition: width 0.3s, background 0.3s;
}

.password-match-error {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
  display: none;
}

/* Botão */
.btn {
  padding: 0.8rem 2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #00ff88;
  color: #000;
  box-shadow: 0 0 20px #00ff8855;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #00ff88aa;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(30deg);
  transition: all 0.3s;
  opacity: 0;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: rotate(30deg) translate(10%, 10%);
}

/* Link para trocar entre login/cadastro */
.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

.auth-switch a {
  color: #00ff88;
  text-decoration: none;
  position: relative;
}

.auth-switch a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #00ff88;
  transition: width 0.3s;
}

.auth-switch a:hover::after {
  width: 100%;
}

/* Efeitos de segurança */
.security-info {
  font-size: 0.8rem;
  color: #666;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.security-info i {
  color: #00ff88;
}

/* Animação de loading */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

.input-error {
  border-color: #dc3545 !important;
}

.input-success {
  border-color: #28a745 !important;
}

