/* Admin auth — Qava UI design standards
   docs: Paths-Web-FE/docs/qava-ui-design-standards.md */

.qava-auth {
  --ink: #111111;
  --muted: #767676;
  --inactive: #9A9A9A;
  --placeholder: #BDBDBD;
  --hair: #E0E0E0;
  --divider: #E8E8E8;
  --wash: #FAFAFA;
  --radius: 6px;
  --panel-radius: 12px;

  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #F3F3F3 0%, transparent 55%),
    linear-gradient(180deg, #F7F7F7 0%, #EFEFEF 100%);
}

.qava-auth *,
.qava-auth *::before,
.qava-auth *::after {
  box-sizing: border-box;
}

.qava-auth-panel {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--panel-radius);
  padding: 36px 32px 32px;
}

.qava-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 28px;
  text-decoration: none;
  color: var(--ink);
}

.qava-auth-brand img {
  width: auto;
  height: 28px;
  display: block;
}

.qava-auth-title {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', Times, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 4px;
  text-align: center;
  color: var(--ink);
}

.qava-auth-sub {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 22px;
  text-align: center;
}

.qava-auth-panel-forgot {
  max-width: 440px;
}

.qava-auth-panel-forgot .qava-auth-sub {
  white-space: nowrap;
}

.qava-auth-field {
  margin: 0 0 20px;
}

.qava-auth-field:last-of-type {
  margin-bottom: 0;
}

.qava-auth-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
  color: var(--ink);
  margin: 0 0 4px;
}

.qava-auth-input {
  width: 100%;
  height: 28px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 300;
  padding: 0 10px;
  outline: none;
  box-shadow: none !important;
  transition: border-color 150ms ease;
}

.qava-auth-input:focus {
  border-color: #111;
}

.qava-auth-input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.qava-auth-input.is-invalid {
  border-color: #D35050;
}

.qava-auth-input.is-valid {
  border-color: var(--hair);
}

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

.qava-auth-password .qava-auth-input {
  padding-right: 34px;
}

.qava-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9A9A9A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
}

.qava-auth-password-toggle:hover {
  color: var(--ink);
  background: #F5F5F5;
}

.qava-auth-password-toggle:focus {
  outline: none;
  color: var(--ink);
}

.qava-auth-password-toggle:focus-visible {
  box-shadow: 0 0 0 1px #111;
}

.qava-auth-password-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.qava-auth-password-toggle .qava-auth-eye-off {
  display: none;
}

.qava-auth-password-toggle.is-visible .qava-auth-eye {
  display: none;
}

.qava-auth-password-toggle.is-visible .qava-auth-eye-off {
  display: block;
}

.qava-auth-error {
  font-size: 11px;
  font-weight: 300;
  color: #D35050;
  margin-top: 4px;
}

.qava-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 24px;
}

.qava-auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.qava-auth-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.qava-auth-check-box {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 16px;
  border: 1px solid #D0D0D0;
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: border-color 150ms ease;
}

.qava-auth-check input:checked + .qava-auth-check-box {
  border-color: #111;
}

.qava-auth-check input:checked + .qava-auth-check-box::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.qava-auth-check-text {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
}

.qava-auth-link {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.qava-auth-link:hover {
  color: var(--ink);
}

.qava-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #111;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.qava-auth-btn:hover {
  background: #000;
  color: #fff;
}

.qava-auth-btn:focus {
  outline: none;
  box-shadow: none;
}

.qava-auth-btn-secondary {
  margin-top: 10px;
  background: #fff;
  color: var(--ink);
  border-color: var(--hair);
  font-weight: 400;
}

.qava-auth-btn-secondary:hover {
  background: var(--wash);
  border-color: #111;
  color: var(--ink);
}

/* Kill Bootstrap theme chrome on auth pages */
body.qava-auth-body {
  background: transparent !important;
}

body.qava-auth-body .preloader {
  display: none !important;
}

body.qava-auth-body .page-wrapper {
  min-height: 0 !important;
  overflow: visible !important;
}
