html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
  background: linear-gradient(135deg, #f7fbff 0%, #e8f3ff 45%, #dff2ff 100%);
  background-image: url("../img/math-pattern.svg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  font-family: "Segoe UI", Arial, sans-serif;
}

.form-signin {
  width: 100%;
  max-width: 430px;
  padding: 24px 22px;
  margin: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 76, 129, 0.16);
  backdrop-filter: blur(8px);
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-top: 0.5rem;
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.swal-modal{
  font-family: arial;
  }

.swal-button {
    color: black !important;
}

.auth-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auth-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 1rem;
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.12);
}

.auth-actions .btn-primary {
  background: linear-gradient(135deg, #0f4c81 0%, #1d9bf0 100%);
  border: none;
}

.auth-actions .btn-danger {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  border: none;
}

.auth-actions .btn-secondary {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
  border: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e8f3ff 0%, #f7fbff 100%);
  color: #0f4c81;
  border: 1px solid #cfe6ff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.brand-title {
  color: #0f4c81;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: #34516d;
  font-weight: 500;
}

.footer-note {
  color: #4b5563;
  font-size: 0.92rem;
}

.footer-note strong {
  color: #0f4c81;
}

@media (max-width: 576px) {
  body {
    padding: 12px 10px;
  }

  #botonayuda, #botoncert, #botonorg {
    font-size: 0.6rem;
    padding: 0.5rem 0.7rem;
    color: black;
    border:  none;
    text-decoration: underline;
  } 
  
  .form-signin {
    max-width: 100%;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .auth-actions .btn {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .brand-subtitle {
    font-size: 0.95rem;
  }

  .footer-note {
    font-size: 0.85rem;
  }
}
