/* ==== VARIABLES GLOBALES ==== */
:root {
  --color-primary: #ff504d;
  --color-secondary: #00c9b7;
  --color-terciary: #ff8e43;
  --color-dark: #222;
  --color-bg: #fffdf6;
  --font-main: 'Poppins', sans-serif;
}

/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

/* ==== FONDO GENERAL ==== */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-terciary), var(--color-secondary));
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==== CONTENEDOR CENTRAL ==== */
.container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 60px;
  width: 360px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  color: white;
  animation: fadeIn 0.6s ease;
}

/* ==== TÍTULOS ==== */
h1 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ==== INPUTS ==== */
label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #f0f0f0;
}

input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  margin-bottom: 18px;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-dark);
  transition: box-shadow 0.2s ease;
}

input:focus {
  box-shadow: 0 0 0 2px var(--color-secondary);
}

/* ==== BOTONES ==== */
button {
  width: 100%;
  background: var(--color-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* ==== TEXTO INFERIOR ==== */
.toggle-form {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
}

.toggle-form a {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.toggle-form a:hover {
  color: var(--color-secondary);
}

/* ==== ANIMACIONES ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== TRANSICIÓN ENTRE FORMULARIOS ==== */
#loginForm, #registerForm {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#loginForm.hidden, #registerForm.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}
