/* Sign-in / recovery pages, clean look (owner, 1 Dec 2026): fewer words; the security-check picture and its answer
   box are two separate parts. Loaded by ic_auth_page_open() (ic/includes/ui_auth.php) after ic-ui.css. */

/* Sign-in top bar on phones and tablets: logo, name and tagline, no back arrow (the desktop has the brand panel). */
.auth-clean .auth-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--fg);
  text-decoration: none;
}
.auth-clean .auth-brandmark {
  width: 34px;
  height: 34px;
  flex: none;
}
.auth-clean .auth-brandline span {
  display: grid;
  min-width: 0;
  gap: 1px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--subtle);
  white-space: nowrap;
}
.auth-clean .auth-brandline b {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
}
@media (min-width: 1024px) {
  .auth-clean .auth-brandline {
    display: none;
  }
}
.auth-signin .auth-title {
  margin-top: 0;
}

/* Security check: picture tile, then its own input box (same look as Email / Password). */
.auth-clean [data-captcha='image'] > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.auth-clean [data-captcha='image'] > p[data-i18n='cap_hint'] {
  display: none;
}
.auth-clean .ic-captcha,
.auth-clean .ic-captcha:focus-within,
.auth-clean .ic-captcha.is-invalid {
  gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.auth-clean .ic-captcha-pic {
  min-height: 0;
  height: 64px;
  padding: 0 6px 0 8px;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.auth-clean .ic-captcha-pic img {
  width: auto;
  height: 48px;
  max-width: calc(100% - 48px);
  border-radius: 8px;
  box-shadow: none;
}
.auth-clean .ic-captcha-failed {
  max-width: none;
  text-align: left;
}
.auth-clean .ic-captcha-refresh {
  position: static;
  flex: none;
  transform: none;
  border-radius: 10px;
}
.auth-clean .ic-captcha-input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 16px;
  letter-spacing: 0.24em;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.auth-clean .ic-captcha-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.auth-clean .ic-captcha.is-invalid .ic-captcha-input {
  border-color: var(--bad);
}
.auth-clean .ic-captcha.is-invalid .ic-captcha-input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .auth-clean .ic-captcha-input {
    transition: none;
  }
}
