/* GLOBAL */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #1d5e2c; /* Verde oscuro */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* CONTENEDOR PRINCIPAL */
.container {
  background-color: #000000;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  width: 400px;
  max-width: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 2px solid #4caf50;
  animation: glowing-border 3s infinite;
}

/* ANIMACIÓN DEL BORDE */
@keyframes glowing-border {
  0%, 100% {
    box-shadow: 0 0 10px #66ccff;
    border-color: #66ccff;
  }
  50% {
    box-shadow: 0 0 20px #50af53;
    border-color: #cdffce;
  } 
}

/* LOGO */
.logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.09) rotate(2deg);
}

/* TÍTULO */
h2 {

 background:#fefffe; /* linear-gradient(45deg, #ffd700, #ffed4e, #fff700, #ffd700); */
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientMove 3s ease-in-out infinite;
            font-size: 2.8rem;
            font-weight: 800;
            font-family: 'Georgia', 'Playfair Display', serif;
            text-align: center;
            position: relative;
            letter-spacing: 3px;
            text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* TABS */
.tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease;
}

.tab-btn.active {
  color: #4caf50;
  border-bottom: 3px solid #4caf50;
}

.tab-btn:hover {
  color: #66bb6a;
  transform: scale(1.05);
}

/* FORMULARIOS */
form {
  display: none;
}

form.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: 0.3s ease;
  font-size: 1rem;
}

input:focus {
  border-color: #4caf50;
  outline: none;
}

/* BOTÓN DE ENVIAR */
button.submit-btn {
  background-color: #1d5e2c;
  border: none;
  color: white;
  padding: 10px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
  font-size: 1rem;
}

button.submit-btn:hover {
  background-color: #388e3c;
}

/* ALERTAS */
.alert {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9em;
}

.alert.success {
  background: #d4edda;
  color: #155724;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE: PANTALLAS PEQUEÑAS */
@media (max-width: 500px) {
  body {
    align-items: flex-start;
    padding: 30px 10px;
  }

  .container {
    width: 100%;
    padding: 30px 20px;
    border-radius: 15px;
  }

  .logo {
    width: 60px;
  }

  h2 {
    font-size: 1.4rem;
  }

  .tab-btn {
    font-size: 0.9rem;
    padding: 8px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"] {
    padding: 8px;
    font-size: 0.9rem;
  }

  button.submit-btn {
    padding: 10px;
    font-size: 0.95rem;
  }

  .alert {
    font-size: 0.85rem;
  }
}
