/* Imagen de fondo tenue (opcional) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('img/1.jpg') no-repeat center center;
  background-size:cover;
  opacity: 0.45;
  z-index: -1;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f2f2f2, #d0e3f7);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Panel de login */
.login-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
  opacity: 0.7;

  /* En escritorio centrado */
  margin: auto 350px 0 auto;
}


/* Títulos internos */
.login-container h1 {
  color: #0077cc;
  font-size: 24px;
  margin-bottom: 10px;
}

.login-container h2 {
  font-size: 30px;
  color: #444;
  margin-bottom: 10px;
}

.login-container p {
  color: #666;
  margin-bottom: 20px;
}

/* Inputs */
input[type="email"],
input[type="password"] {
  width: 90%;
  max-width: 320px;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Botón iniciar sesión */
button[type="submit"] {
  width: 90%;
  max-width: 200px;
  background-color: #0077cc;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: block;
  margin: 0 auto 10px;
}

button[type="submit"]:hover {
  background-color: #005fa3;
}

/* Divisor visual */
.divider {
  margin: 20px 0;
  text-align: center;
  font-weight: bold;
  color: #888;
}

/* Botón de Google */
a.google-btn {
  text-decoration: none;
  background-color: #f2f2f2;
  padding: 12px 20px;
  display: inline-block;
  border-radius: 8px;
  font-weight: bold;
  color: #444;
  transition: background-color 0.3s;
  width: 90%;
  max-width: 320px;
}

a.google-btn:hover {
  background-color: #e6e6e6;
}

.google-btn img {
  vertical-align: middle;
  margin-right: 8px;
}

/* Enlaces inferiores */
small {
  display: block;
  margin-top: 20px;
  color: #999;
}

small a {
  color: #0077cc;
  text-decoration: none;
}

small a:hover {
  text-decoration: underline;
}

.branding {
  position: absolute;
  top: 200px;
  left: 60px;
  color: #000;
  z-index: 10;
  max-width: 600px;
  animation: fadeInLeft 1.8s ease-out;
 text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2); /* 👈 sombra sutil */
}
/* LEYENDA */
.branding h1 {
  font-size: 60px;
  font-weight: bold;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); /* 👈 más marcada en el título */
}

.branding p {
  font-size: 20px;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2); /* igual que el contenedor */
}
/* LOGO DE TITUTLO */
.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo-responsive {
  max-width: 500px;
  width: 100%;
  height: auto;
  animation: fadeSlideUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .logo-responsive {
    max-width: 200px;
  }
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .branding {
    position: static;
    text-align: center;
    margin-top: 20px;
    padding: 0 15px;
  }

  .branding h1 {
    font-size: 26px;
  }

  .branding p {
    font-size: 14px;
    margin-top: 5px;
  }
}

/* Animación */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .main-title {
    font-size: 22px;
    margin-bottom: 10px;
    padding: 10px;
    text-align: center;
  }

  .leyenda {
    font-size: 14px;
    padding: 0 15px;
    text-align: center;
    margin-bottom: 10px;
  }

  .login-container {
    width: 90%;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
  }

  body {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
  }

  footer {
    font-size: 12px;
    padding: 10px;
  }
}
