body.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 251, 245, 0.74), transparent 30%),
    linear-gradient(180deg, var(--app-bg-gradient-start) 0%, var(--app-bg-gradient-end) 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-panel {
  width: min(100%, 420px);
  background: linear-gradient(180deg, var(--app-input-focus) 0%, var(--app-surface-soft) 100%);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  padding: 2rem;
  box-shadow: 0 24px 58px rgba(40, 32, 24, 0.14);
}

.auth-logo {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(109, 74, 51, 0.14);
  box-shadow: var(--app-shadow-sm);
}

.auth-title {
  margin: 0;
  color: var(--app-primary);
  font-size: 1.45rem;
  font-weight: var(--app-font-weight-extra-bold);
  line-height: 1.1;
}

.auth-subtitle {
  margin: 0.35rem 0 0;
  color: var(--app-text-soft);
}

.auth-submit {
  min-height: 48px;
  border-radius: 14px;
}

.auth-password-field {
  position: relative;
}

.auth-password-field .form-control {
  padding-right: 3.2rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(109, 74, 51, 0.08);
  color: var(--app-primary);
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: rgba(109, 74, 51, 0.14);
}

.auth-password-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(109, 74, 51, 0.14);
}

.auth-password-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: currentColor;
}

.auth-secondary-action {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.78);
  color: var(--app-primary);
  font-weight: var(--app-font-weight-bold);
  text-decoration: none;
}

.auth-secondary-action:hover,
.auth-secondary-action:focus-visible {
  border-color: rgba(109, 74, 51, 0.32);
  background: var(--app-input-focus);
  color: var(--app-primary);
  text-decoration: none;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.68);
  cursor: pointer;
}

.auth-remember .form-check-input {
  width: 2.65rem;
  height: 1.35rem;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.8);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%236d4a33'/%3e%3c/svg%3e") !important;
  border-color: rgba(85, 61, 42, 0.28);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.auth-remember .form-check-input:hover {
  border-color: rgba(109, 74, 51, 0.42);
}

.auth-remember .form-check-input:focus {
  border-color: rgba(109, 74, 51, 0.42);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%236d4a33'/%3e%3c/svg%3e") !important;
  box-shadow: 0 0 0 0.18rem rgba(109, 74, 51, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.65) !important;
}

.auth-remember .form-check-input:checked {
  background-color: var(--app-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fffaf4'/%3e%3c/svg%3e") !important;
  border-color: var(--app-primary);
}

.auth-remember .form-check-label {
  color: var(--app-text-soft);
  font-weight: var(--app-font-weight-semibold);
  cursor: pointer;
}

.auth-remember:has(.form-check-input:checked) {
  background: var(--app-primary-soft);
  border-color: rgba(109, 74, 51, 0.24);
}

.auth-remember:has(.form-check-input:checked) .form-check-label {
  color: var(--app-primary);
}

@media (max-width: 575.98px) {
  .auth-shell {
    padding: 1rem;
  }

  .auth-panel {
    padding: 1.35rem;
  }
}
