/* Tipografía base y responsiva */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding-bottom: 60px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(to bottom right, #5f2c82, #49a09d);
  color: #333;
  background-attachment: fixed;
  background-size: cover;
}

/* Tarjetas y formularios centrados */
.card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.15);
}

/* Formularios modernos */
.form-control {
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-control:focus {
  border-color: #258cfb;
  box-shadow: 0 0 0 0.25rem rgba(37, 140, 251, 0.25);
}

/* Estilo botones */
.btn-primary {
  background-color: #258cfb;
  border-color: #258cfb;
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #1a6fd3;
  border-color: #1a6fd3;
}

.btn-warning {
  border-radius: 0.6rem;
  font-weight: 500;
}

/* Botones y campos con enfoque */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
  outline: none;
}

/* Enlaces */
a {
  color: #1558c0;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0a3e91;
  text-decoration: underline;
}

/* Validaciones */
.text-danger {
  font-size: 0.875rem;
}

/* Etiquetas de formularios flotantes */
.form-floating > label {
  font-size: 0.95rem;
  color: #666;
}

/* Pequeño pulido para dispositivos móviles */
@media (max-width: 576px) {
  .card {
    margin: 1rem;
    padding: 1.5rem;
  }
}
