/* Authentication capability presentation. */
.fs-auth-page {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.app-loading .fs-auth-shell,
body.app-navigating .fs-auth-shell {
  pointer-events: none;
}

.fs-auth-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 28px 18px;
  overflow: hidden;
  background-color: var(--fs-color-workspace-clouds);
}

.fs-auth-shell::before {
  position: absolute;
  z-index: -1;
  inset: -20px;
  background-image:
    linear-gradient(var(--fs-color-auth-overlay), var(--fs-color-auth-overlay)),
    url("../../backgrounds/background-clouds.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(12px);
  transform: scale(1.04);
  content: "";
  pointer-events: none;
}

.fs-auth-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(440px, 100%);
}

.fs-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: min(320px, 100%);
  padding: 0;
}

.fs-auth-company-logo {
  display: block;
  width: min(190px, 58vw);
  height: 54px;
  object-fit: contain;
}

.fs-auth-brand small,
.fs-auth-provider > span,
.fs-auth-heading > span {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fs-auth-brand small,
.fs-auth-provider > span {
  color: var(--fs-color-surface);
  text-shadow: 0 1px 8px var(--fs-color-auth-text-shadow);
}

.fs-auth-main {
  display: flex;
  justify-content: center;
  width: 100%;
}

.fs-auth-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 32px;
  background:
    linear-gradient(var(--fs-color-auth-card-start), var(--fs-color-auth-card-end)),
    url("../../backgrounds/background-clouds.png") center / cover no-repeat;
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-xl);
  box-shadow:
    0 2px 7px rgb(31 53 71 / 12%),
    0 18px 42px rgb(31 53 71 / 16%);
}

.fs-auth-heading {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
}

.fs-auth-heading h1 {
  color: var(--fs-color-text);
  font-family: "Public Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.fs-auth-heading p {
  color: var(--fs-color-text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.fs-auth-form {
  display: grid;
  gap: 14px;
}

.fs-auth-card .fs-auth-heading > span {
  color: var(--fs-color-primary);
}

.fs-auth-card .fs-field > span {
  color: var(--fs-color-text);
}

.fs-auth-card .fs-auth-control > input {
  min-height: 44px;
  color: var(--fs-color-text);
  background: var(--fs-color-field);
  border-color: var(--fs-color-border);
}

.fs-auth-card .action-button--wide {
  min-height: 44px;
}

.fs-auth-control {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--fs-color-text);
  font-size: 14px;
  font-weight: 400;
}

.fs-auth-control > img {
  position: absolute;
  z-index: 1;
  left: 13px;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.fs-auth-control > input {
  padding-left: 38px;
  background: var(--fs-color-field);
}

.fs-auth-footer {
  max-width: 420px;
  padding: 0 16px;
  color: var(--fs-color-surface);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 8px var(--fs-color-auth-text-shadow);
}

.fs-auth-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 176px;
  padding: 0;
}

.fs-auth-provider img {
  display: block;
  width: 138px;
  height: 52px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}


@media (max-width: 600px) {
  .fs-auth-shell {
    align-items: start;
    padding-top: max(22px, env(safe-area-inset-top));
  }

  .fs-auth-card {
    padding: 26px 20px 24px;
  }

  .fs-auth-heading h1 {
    font-size: 25px;
  }
}
