* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */

.top-bar {
  background: #e10098;
  height: 71px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-header img {
  height: 44px;
}

/* ================= MARCAS ================= */

.brands-container {
  text-align: center;
  padding: 40px 20px 25px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-shrink: 0;
}

.brands-text {
  font-size: 13px;
  color: #555555;
  margin-bottom: 20px;
}

.brands-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;     
  overflow-x: auto;      
  white-space: nowrap;
}

.brands-logos img {
  height: 36px;
  flex-shrink: 0;
}

/* ================= LOGIN ================= */

.login-container {
  width: 360px;
  margin: 20px auto 20px auto;
  padding: 0 20px;
  flex: 1;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 500;
}

.inputgroup {
  position: relative;
  margin-bottom: 25px;
}

.inputgroup input {
  width: 100%;
  padding: 20px 14px;
  border: 1px solid #545252;
  font-size: 14px;
  outline: none;
}

.inputgroup input:focus {
  border-color: #e10098;
}

.inputgroup label {
  position: absolute;
  left: 14px;
  top: 20px;
  background: #fff;
  padding: 0 5px;
  font-size: 18px;
  color: #656565;
  transition: 0.2s;
  pointer-events: none;
}

.inputgroup input:focus + label,
.inputgroup input:valid + label {
  top: -10px;
  font-size: 14px;
  color: #e10098;
}

.password-group .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s;
}

.password-group .toggle-password:hover {
  color: #e10098;
}

.password-group .toggle-password svg {
  fill: currentColor;
}

/* ================= OLVIDASTE ================= */

.forgot {
  display: block;
  text-align: left;
  font-size: 15px;
  margin-bottom: 25px;
  color: #e10098;
  text-decoration: underline; 
  border-color: #e10098;
}

/* ================= BOTÓN PRINCIPAL ================= */

.primary-btn {
  width: 100%;
  padding: 16px;
  background: #e10098;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.primary-btn:hover {
  opacity: 0.9;
}

/* ================= DIVIDER CON LÍNEAS ================= */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 35px 0 25px 0;
  font-size: 13px;
  color: #888;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #545252;
  margin: 0 15px;
}

/* ================= BOTONES SOCIALES ================= */

.social-btn {
  width: 100%;
  padding: 15px 14px;
  margin-bottom: 12px;
  border: 1px solid #545252;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #656565;
}

.apple-btn .social-icon svg {
  width: 26px;
  height: 26px;
  fill: #373636;

}

.apple-btn .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -50px;
}


/* Facebook */
.facebook-btn .social-icon svg {
  width: 20px;
  height: 20px;
  fill: #151515;
  margin-left: -20px;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  font-size: 15px;
  color: #ffffff;
  padding: 15px 10px;
  background: linear-gradient(to bottom, #646363, #646363);
  flex-shrink: 0;
  margin-top: auto;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 480px) {

  .login-container {
    width: 92%;
  }

  .brands-logos {
    gap: 3px;
  }

}

/* ===== LOGOS EN DOS RENGLONES ===== */
.brands-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brands-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.brands-logos.row-1 {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.brands-logos.row-2 {
  justify-content: center;
  gap: 4px;
  margin-top: 0;
}

.brands-logos img {
  height: 36px;
  flex-shrink: 0;
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .brands-logos {
    gap: 3px;
  }
  
  .brands-logos img {
    height: 24px;
  }
  
  .brands-logos.row-2 {
    margin-top: 2px;
  }
}

@media (max-width: 380px) {
  .brands-logos img {
    height: 20px;
  }
  
  .brands-logos {
    gap: 2px;
  }
}
/* ===== LOGOS EN DOS RENGLONES ===== */
.brands-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brands-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.brands-logos.row-1 {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.brands-logos.row-2 {
  justify-content: center;
  gap: 4px;
  margin-top: 0;
}

.brands-logos img {
  height: 36px;
  flex-shrink: 0;
}

/* 🔹 FORZAR MISMA ALTURA PARA EL LOGO 13 */
.brands-logos img[src*="logo13"] {
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .brands-logos {
    gap: 3px;
  }
  
  .brands-logos img {
    height: 24px;
  }
  
  .brands-logos img[src*="logo13"] {
    height: 24px !important;
    max-height: 24px !important;
  }
  
  .brands-logos.row-2 {
    margin-top: 2px;
  }
}

@media (max-width: 380px) {
  .brands-logos img {
    height: 20px;
  }
  
  .brands-logos img[src*="logo13"] {
    height: 20px !important;
    max-height: 20px !important;
  }
  
  .brands-logos {
    gap: 2px;
  }
}