/* ======================================= */
/*  login_barberia.css – Versión final responsive con animación de botón */
/* ======================================= */

/* 1) Importa tipografía moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 0) Box-sizing global para evitar desbordes */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2) Reset & Base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #000;
  background: radial-gradient(circle at bottom center, #111111 0%, #000000 80%);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body {
  /* espacio inferior para barra footer + home */
  padding-bottom: 104px;
}

/* 3) Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 4) Contenedor principal */
.form-container {
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  padding: 28px 20px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255,255,255,0.12);
  animation: floatUp 0.8s ease-out;
}

/* Ajuste para pantallas grandes */
@media (min-width: 800px) {
  .form-container {
    width: 400px;
    padding: 32px 24px;
  }
}

/* 5) Logo encima del contenedor */
.form-container .logo {
  display: block;
  margin: 0 auto 20px;
  width: 120px;
  height: auto;
}
@media (max-width: 600px) {
  .form-container .logo {
    width: 80px;
    margin-bottom: 16px;
  }
}

/* 6) Título */
.form-container h2 {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,255,255,0.2);
  animation: fadeIn 0.6s ease-out;
}

/* 7) Inputs */
.form-container input[type="email"],
.form-container input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #1e1e1e;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 0 6px rgba(255,255,255,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.form-container input:focus {
  background: #2b2b2b;
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  outline: none;
}
.form-container input::placeholder {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

/* 8) Botón enviar con animación personalizada */
.form-container button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: linear-gradient(90deg, #fff, #e0e0e0);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, background 0.3s, box-shadow 0.2s;
}
.form-container button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.3);
  transform: rotate(45deg) translate(-100%, -100%);
  transition: transform 0.5s ease;
}
.form-container button:hover {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 10px white;
}
.form-container button:hover::after {
  transform: rotate(45deg) translate(150%, 150%);
}

/* 9) Mensaje de error */
.mensaje {
  width: 100%;
  margin: 14px 0;
  padding: 12px;
  background: #1a1a1a;
  color: #ff5e5e;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,0,0,0.2);
  animation: floatUp 0.4s ease-out;
  text-align: center;
}

/* 10) Link Recuperar contraseña */
.recuperar-link {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
}
.recuperar-link:hover {
  color: #ff4c4c;
}

/* 11) Barra Footer */
.barra-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #000;
  color: #fff;
  font-size: 0.70rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 99;
}

/* 12) Botón Home – justo encima del footer */
.home-button {
  position: fixed;
  left: 0;
  bottom: 40px;
  width: 100%;
  height: 35px;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
  z-index: 100;
}
.home-button:hover {
  background: rgba(255,255,255,0.1);
}
.home-button .home-icon svg {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
}

/* 13) Responsive Mobile */
@media (max-width: 600px) {
  .form-container {
    width: 95%;
    padding: 20px 14px;
  }
  .form-container h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  .form-container input,
  .form-container button {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  .mensaje {
    font-size: 0.85rem;
    padding: 10px;
  }
  .recuperar-link {
    font-size: 0.85rem;
  }
}
