/* Button Layout Fixes - Evitar que los botones salten de línea */

/* Contenedor principal para botones de autenticación */
.auth-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

/* Botones de autenticación */
.auth-button {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Botón principal "Iniciar" */
.auth-button-primary {
  order: 1;
  margin-bottom: 0.5rem;
}

/* Botones secundarios "sesión" y "Registro" */
.auth-button-secondary {
  order: 2;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* Contenedor específico para evitar saltos de línea */
.no-wrap-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

/* Botones individuales */
.btn-auth {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 0;
}

/* Layout específico para botones de autenticación */
.auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-layout .btn {
  width: 100%;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contenedor de botones en línea */
.inline-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.inline-buttons .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Layout específico para el mensaje y botones */
.auth-message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #4ab9b0 0%, #2a8f85 100%);
  border-radius: 12px;
  color: white;
}

.auth-message-container h3,
.auth-message-container p {
  margin: 0;
  color: white;
}

.auth-message-container .btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.auth-message-container .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Responsive design para botones */
@media (max-width: 576px) {
  .auth-layout .btn {
    max-width: 100%;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .inline-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .inline-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .auth-layout .btn {
    max-width: 180px;
  }
}

@media (min-width: 769px) {
  .auth-layout .btn {
    max-width: 200px;
  }
}

/* Clases utilitarias para evitar saltos de línea */
.no-wrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flex-no-wrap {
  flex-wrap: nowrap;
}

.min-width-fit {
  min-width: fit-content;
}

/* Contenedor específico para botones de acción */
.action-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.action-buttons-container .btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Layout para botones de navegación */
.nav-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.nav-buttons-container .btn {
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contenedor para botones de formulario */
.form-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.form-buttons-container .btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Asegurar que los botones no se compriman */
.btn-no-compress {
  flex-shrink: 0;
  min-width: fit-content;
  white-space: nowrap;
}

/* Layout para botones de tarjeta */
.card-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.card-buttons-container .btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
