/* Auth funnel brand polish — form lockup + cover purple wash */
.authentication .auth-form-brand {
  margin-bottom: 1.5rem;
}

.authentication .auth-form-brand-logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 100%;
}

.authentication .auth-cover-brand .authentication-cover-background.auth-cover-wash {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(152, 95, 253, 0.28) 0%, transparent 55%),
    linear-gradient(165deg, rgba(152, 95, 253, 0.14) 0%, rgba(255, 255, 255, 0.5) 48%, rgba(17, 33, 40, 0.04) 100%);
  opacity: 1;
}

.authentication .auth-cover-brand .authentication-cover-logo img {
  height: 2.25rem;
  width: auto;
}

.authentication .auth-cover-brand .authentication-cover-content {
  max-width: 18rem;
}

button.show-password-button {
  background: transparent;
  border: 0;
  padding: 0.55rem;
}

@media (max-width: 320px) {
  .authentication .card-body.p-5 {
    padding: 1.25rem;
  }

  .authentication .btn-w-lg {
    min-width: 0;
    max-width: 100%;
  }
}

/* KAN-267 */
body.auth-funnel {
  background-color: var(--default-body-bg-color);
  color: var(--default-text-color);
  min-height: 100vh;
}
.auth-wordmark {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--default-text-color);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.auth-wordmark-register {
  margin-bottom: 3rem;
}
.auth-funnel-card {
  background-color: var(--custom-white);
  border: 1px solid var(--default-border);
  color: var(--default-text-color);
  box-shadow: none;
}
.auth-provider-btn {
  background-color: var(--custom-white);
  border: 1px solid var(--default-border);
  color: var(--default-text-color);
  justify-content: flex-start;
  min-height: 2.75rem;
}
.auth-provider-btn .auth-provider-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}
.auth-funnel-footer a + a {
  margin-left: 1rem;
}
@media (max-width: 991.98px) {
  .card.auth-funnel-card {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .auth-funnel-card > .card-body {
    padding-left: 0;
    padding-right: 0;
  }
  .auth-funnel-stack {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .auth-funnel-col {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .auth-funnel-footer {
    margin-top: auto;
  }
}
@media (min-width: 992px) {
  .auth-funnel-col {
    max-width: 26rem;
  }
}

/* KAN-268 */
.auth-provider-btn .auth-last-used {
  margin-left: auto;
}

/* KAN-275 */
@media (min-width: 992px) {
  .auth-funnel-col.auth-funnel-col-wide {
    max-width: 48rem;
  }
}

/* KAN-270 */
.auth-passkey-link {
  color: var(--default-text-color);
  text-decoration-color: var(--default-border);
}

.password-rules {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.password-rules li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  color: var(--text-muted);
}
.password-rules li.is-met {
  color: #3dd68c;
}
.password-rules li.is-unmet {
  color: #ff8b8b;
}
.auth-funnel .invalid-feedback {
  color: #ff8b8b;
}

/* A tall auth card must scroll instead of sitting under the viewport edge. */
body.auth-funnel {
  height: auto;
  overflow-y: auto;
}
body.auth-funnel .row.authentication,
body.auth-funnel .row.authentication .h-100 {
  height: auto !important;
  min-height: 100vh;
  align-items: safe center;
}
