/* Pantallas de autenticacion: sin sidebar ni header, card centrada. */
.auth-layout {
  background-color: var(--lib-bg);
}

.auth-layout .app-main {
  margin-left: 0;
}

.auth-layout .app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  margin: 0;
}

.auth-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  padding: 4rem 1rem;
}

.auth-theme-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--lib-radius-pill);
}

.auth-panel {
  width: 100%;
  max-width: 26.5rem;
  text-align: center;
}

.auth-brand__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: var(--lib-radius-lg);
  background-color: var(--lib-primary-500);
  color: var(--lib-text-inverse);
  box-shadow: var(--lib-shadow-md);
}

.auth-title {
  margin-bottom: 0.375rem;
  font-size: 1.5rem;
  font-weight: var(--lib-font-weight-semibold);
}

.auth-subtitle {
  margin-bottom: 1.75rem;
  color: var(--lib-text-muted);
  font-size: 0.9375rem;
}

.auth-card {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: var(--lib-radius-lg);
  box-shadow: var(--lib-shadow-lg);
}

.auth-card .card-body {
  padding: 2rem;
}

.auth-card .form-label {
  margin-bottom: 0.5rem;
  color: var(--lib-text);
  font-weight: var(--lib-font-weight-medium);
}

.auth-layout .form-control {
  padding: 0.625rem 0.875rem;
  background-color: var(--lib-surface-muted);
  border-color: var(--lib-border);
  border-radius: var(--lib-radius-md);
}

.auth-layout .form-control:focus {
  background-color: var(--lib-surface);
  border-color: var(--lib-primary-500);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--lib-primary-500) 18%, transparent);
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
}

.auth-link {
  color: var(--lib-primary-500);
  font-weight: var(--lib-font-weight-medium);
}

.auth-submit {
  padding: 0.7rem 1rem;
  border-radius: var(--lib-radius-md);
  font-weight: var(--lib-font-weight-semibold);
}

.auth-footer {
  margin: 1.5rem 0 0;
  color: var(--lib-text-muted);
  font-size: 0.875rem;
}

.auth-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.auth-message__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--lib-primary-50);
  color: var(--lib-primary-600);
}

.auth-message__icon--danger {
  background-color: #fef3f2;
  color: #b42318;
}

.auth-errors {
  padding: 0;
  margin: 0.375rem 0 0;
  color: var(--bs-danger);
  font-size: 0.8125rem;
  list-style: none;
}

