body {
  background: #8ab3d1;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
}

.container-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--navbar-height, 0px));
  padding: 20px;
  box-sizing: border-box;
}

.logo-auth {
  width: 140px;
  margin-bottom: 24px;
}

.auth-form {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
}

.auth-title {
  margin: 0 0 0.4rem 0;
  text-align: center;
  font-size: 1.4rem;
  color: #333;
}

.auth-form label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.auth-form input[type='text'],
.auth-form input[type='password'] {
  padding: 0.7rem 1rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.auth-form input[type='text']:focus,
.auth-form input[type='password']:focus {
  border-color: #007bff;
}

.auth-form input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper input[type='password'],
.input-password-wrapper input[type='text'] {
  width: 100%;
  padding-right: 2.8rem;
  box-sizing: border-box;
}

.btn-toggle-password {
  position: absolute;
  right: 0.7rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
  padding: 0;
  line-height: 1;
  user-select: none;
}

.btn-toggle-password:hover {
  color: #333;
}

.auth-form a.btn-auth {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-auth:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-hint {
  margin: -0.3rem 0 0 0;
  font-size: 0.78rem;
  color: #888;
}

.btn-auth {
  background: #ffe14b;
  color: #444;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-auth:hover {
  background: #ffd600;
  color: #222;
}

.auth-link {
  text-align: center;
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-error {
  margin: 0;
  color: #c0392b;
  font-size: 0.9rem;
  text-align: center;
}

.bienvenida-box {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
}

.bienvenida-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
}

.bienvenida-subtitle {
  margin: 0;
  color: #555;
  font-size: 1rem;
}

.bienvenida-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.4rem;
}

.bienvenida-acciones .btn-auth {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-auth-secundario {
  background: #fff;
  color: #444;
  border: 2px solid #ffe14b;
}

.btn-auth-secundario:hover {
  background: #fff8d6;
  color: #222;
}

/* ── Sección de contenido SEO en bienvenida ─────────────────────────────── */
.bienvenida-info {
  max-width: 560px;
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.bienvenida-info article {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.bienvenida-info h2 {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
  color: #1a4971;
}

.bienvenida-info p {
  margin: 0;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.5;
}

.bienvenida-pasos {
  margin: 0;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.8;
}

.bienvenida-info a {
  color: #007bff;
  text-decoration: none;
}

.bienvenida-info a:hover {
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .auth-form,
  .bienvenida-box {
    padding: 1.5rem 1.2rem;
  }
  .logo-auth {
    width: 16rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
  }
  .btn-auth {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    /*! min-height: 44px; */
  }
  .auth-title {
    font-size: 1.2rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-auth,
  .auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .auth-form input[type='text'],
  .auth-form input[type='password'] {
    font-size: 16px;
    padding: 0.8rem 1rem;
  }
}
