.awp-auth-screen-body {
  margin: 0;
  min-height: 100vh;
  background: #0f0f10;
  color: #111111;
  font-family: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.awp-auth-screen {
  position: relative;
  flex: 1 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 32px 24px 40px;
}

.awp-auth-screen__background,
.awp-auth-screen__veil {
  position: absolute;
  inset: 0;
}

.awp-auth-screen__background {
  z-index: 1;
}

.awp-auth-screen__background .awp-program-poster-wall--fullscreen {
  min-height: 100vh;
  height: 100vh;
}

.awp-auth-screen__background .awp-program-poster-wall__grid {
  align-items: stretch;
}

.awp-auth-screen__background .awp-program-poster-wall__item {
  border-radius: 10px;
}

.awp-auth-screen__veil {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, rgba(10, 10, 10, .40), rgba(10, 10, 10, .58));
}

.awp-auth-screen__panel {
  position: relative;
  z-index: 3;
  width: min(100%, 478px);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: auto auto auto;
  padding: 32px 46px 30px;
}

.awp-auth-screen__client-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.awp-auth-screen__client-logo img {
  display: block;
  max-width: min(180px, 56%);
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.awp-auth-screen__content {
  display: grid;
  align-content: start;
  padding-top: 4px;
  gap: 0;
}

.awp-auth-screen__header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.5vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 700;
}

.awp-auth-screen__header p {
  margin: 12px 0 0;
  max-width: 360px;
  color: #666666;
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 400;
}

.awp-auth-screen__notice {
  margin-top: 20px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: .88rem;
  line-height: 1.45;
}

.awp-auth-screen__notice.is-error {
  background: #fff1ef;
  color: #9f342d;
}

.awp-auth-screen__notice.is-success {
  background: #edf9ee;
  color: #186632;
}

.awp-auth-screen__notice.is-info {
  background: #eef5ff;
  color: #2450a7;
}

.awp-auth-screen__form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.awp-auth-screen__form label {
  display: grid;
  gap: 8px;
}

.awp-auth-screen__form span {
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
}

.awp-auth-screen__form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9e2f3;
  border-radius: 10px;
  background: #fbf2ed;
  color: #111;
  padding: 14px 18px;
  font: inherit;
  font-size: .9rem;
  line-height: 1.35;
  min-height: 52px;
}

.awp-auth-screen__form input:focus {
  outline: none;
  border-color: var(--awp-auth-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--awp-auth-accent) 22%, transparent);
}

.awp-auth-screen__password-group {
  display: grid;
  gap: 8px;
}

.awp-auth-screen__password-field {
  position: relative;
}

.awp-auth-screen__password-field input {
  padding-right: 58px;
}

.awp-auth-screen__links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 0;
}

.awp-auth-screen__links a {
  color: var(--awp-auth-accent);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.2;
}

.awp-auth-screen__links a:visited,
.awp-auth-screen__links a:hover,
.awp-auth-screen__links a:focus,
.awp-auth-screen__links a:focus-visible {
  color: var(--awp-auth-accent);
  text-decoration-color: currentColor;
}

.awp-auth-screen__links a:hover {
  text-decoration: underline;
}

.awp-auth-screen__links a:focus,
.awp-auth-screen__links a:focus-visible {
  text-decoration: underline;
}

.awp-auth-screen__form button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--awp-auth-accent);
  color: #111;
  padding: 16px 24px;
  font-size: .95rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
  min-height: 58px;
}

.awp-auth-screen__panel.is-client-branded .awp-auth-screen__form button[type="submit"] {
  color: #fbf2ed;
}

.awp-auth-screen__form button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.awp-auth-screen__form .awp-auth-screen__password-toggle {
  appearance: none !important;
  position: absolute;
  top: 50%;
  right: 5px;
  width: 42px;
  height: 42px;
  min-height: 0 !important;
  padding: 9px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #5f6670 !important;
  cursor: pointer;
  transform: translateY(-50%) !important;
  filter: none !important;
  text-shadow: none !important;
  transition: color .16s ease, background-color .16s ease;
}

.awp-auth-screen__form .awp-auth-screen__password-toggle:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: #5f6670 !important;
  outline: none;
}

.awp-auth-screen__form .awp-auth-screen__password-toggle:hover,
.awp-auth-screen__form .awp-auth-screen__password-toggle:focus-visible {
  background: var(--awp-auth-accent) !important;
  color: #111 !important;
}

.awp-auth-screen__form .awp-auth-screen__password-toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 1px;
}

.awp-auth-screen__panel.is-client-branded .awp-auth-screen__password-toggle:hover,
.awp-auth-screen__panel.is-client-branded .awp-auth-screen__password-toggle:focus-visible {
  color: #fbf2ed !important;
}

.awp-auth-screen__password-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.awp-auth-screen__password-toggle svg[hidden] {
  display: none;
}

.awp-auth-screen__footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 26px;
}

.awp-auth-screen__footer img {
  display: block;
  max-width: min(204px, 62%);
  width: auto;
  height: auto;
}

.awp-auth-screen__footer span {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.awp-auth-screen__site-footer {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  background: transparent;
}

@media (max-width: 900px) {
  .awp-auth-screen {
    padding: 18px 18px 28px;
  }

  .awp-auth-screen__panel {
    width: min(100%, 478px);
    min-height: auto;
    padding: 28px 24px 28px;
    border-radius: 24px;
  }

  .awp-auth-screen__header p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .awp-auth-screen__panel {
    padding: 22px 18px 24px;
    border-radius: 22px;
  }

  .awp-auth-screen__form {
    gap: 16px;
  }

  .awp-auth-screen__form button[type="submit"] {
    padding: 15px 18px;
  }

  .awp-auth-screen__links {
    justify-content: flex-start;
  }
}
