/* =========================================
   LOGIN.CSS — Página de ingreso/login
   ========================================= */

/* Hacer que main-content sea flex container para que la sección se estire */
.main-content {
  display: flex;
  flex-direction: column;
}

/* Sección centrada que ocupa todo el alto disponible */
.login-section {
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ---- Tarjeta de login ---- */
.login-card {
  position: relative;
  z-index: 10;
  background: #1a5fa8;
  border-radius: 20px;
  padding: 32px 40px 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* ---- Cabecera: logos + técnico ---- */
.login-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.login-logo-club {
  width: 130px;
  height: auto;
  flex-shrink: 0;
}

.login-tecnico-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #f5c800;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

.login-tecnico-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.login-logo-sigelec {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

/* ---- Formulario ---- */
.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.login-field {
  width: 100%;
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.login-field input {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 30px;
  background: #ffffff;
  padding: 0 18px;
  font-family: var(--font-main, sans-serif);
  font-size: 0.9rem;
  color: #333;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}

.login-field input:focus {
  box-shadow: 0 0 0 3px rgba(245, 200, 0, 0.5);
}

/* ---- ¿Olvidaste tu contraseña? ---- */
.login-forgot {
  font-size: 0.82rem;
  color: #cce4ff;
  text-decoration: none;
  text-align: center;
  display: block;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.login-forgot:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- Botón Ingresar ---- */
.login-btn {
  font-family: var(--font-main, sans-serif);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: #2196F3;
  border: none;
  padding: 12px 60px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 14px rgba(33, 150, 243, 0.4);
  margin-bottom: 20px;
}

.login-btn:hover {
  background: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.45);
}

/* ---- Link de registro ---- */
.login-register-link {
  font-size: 0.85rem;
  color: #cce4ff;
  text-align: center;
  margin: 0;
}

.login-register-link a {
  color: #f5c800;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-register-link a:hover {
  color: #ffe566;
  text-decoration: underline;
}

/* ---- Botón WhatsApp flotante ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 70px;
  left: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5c800;
  border-radius: 50px;
  padding: 10px 20px 10px 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn svg {
  width: 42px;
  height: 42px;
  color: #25D366;
  flex-shrink: 0;
}

.whatsapp-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.whatsapp-btn span strong {
  font-size: 0.9rem;
  font-weight: 900;
  color: #003d7a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.whatsapp-btn span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #003d7a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .login-card {
    padding: 24px 20px 28px;
  }

  .login-logo-club {
    width: 100px;
  }

  .login-tecnico-circle {
    width: 85px;
    height: 85px;
  }

  .login-logo-sigelec {
    width: 90px;
  }

  .login-btn {
    padding: 12px 40px;
    width: 80%;
  }

  .whatsapp-btn {
    bottom: 60px;
    padding: 8px 14px 8px 8px;
  }

  .whatsapp-btn svg {
    width: 34px;
    height: 34px;
  }
}
