html,
body,
#root {
  min-height: 100%;
}

body.aw-login-themed {
  margin: 0;
  min-height: 100vh;
  background: #fffaf0;
  color: #24212b;
  overflow-x: hidden;
}

body.aw-login-themed #root {
  min-height: 100vh;
}

body.aw-login-themed .aw-login-toolbar {
  position: fixed !important;
  top: 12px;
  right: 16px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  background: transparent !important;
}

body.aw-login-themed .aw-login-toolbar * {
  box-shadow: none !important;
}

body.aw-login-themed #first-factor-stage.aw-themed-stage {
  display: grid !important;
  grid-template-columns: minmax(460px, 1.03fr) minmax(390px, 0.97fr);
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 0 !important;
  width: 100%;
  min-height: 100vh !important;
  padding: 0;
  background:
    linear-gradient(90deg, #23202d 0 50%, #fffaf0 50% 100%);
  text-align: left !important;
}

body.aw-login-themed #first-factor-stage.aw-themed-stage > .MuiContainer-root {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 472px);
  max-width: 472px !important;
  padding: clamp(28px, 5vw, 56px) !important;
  box-sizing: border-box;
}

body.aw-login-themed #first-factor-stage.aw-themed-stage > .MuiSnackbar-root {
  grid-column: 2;
}

body.aw-login-themed #first-factor-stage.aw-themed-stage > .MuiContainer-root > .MuiGrid-container {
  width: 100%;
  margin: 0;
}

body.aw-login-themed
  #first-factor-stage.aw-themed-stage
  > .MuiContainer-root
  > .MuiGrid-container
  > .MuiGrid-root:first-child {
  display: none;
}

body.aw-login-themed #first-factor-stage.aw-themed-stage h5,
body.aw-login-themed #first-factor-stage.aw-themed-stage .MuiTypography-h5 {
  margin: 0 0 6px;
  color: #24212b;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.08;
}

body.aw-login-themed #first-factor-stage.aw-themed-stage h5::after,
body.aw-login-themed #first-factor-stage.aw-themed-stage .MuiTypography-h5::after {
  content: "Welcome back to your workspace.";
  display: block;
  margin-top: 10px;
  color: #7b7287;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

body.aw-login-themed #form-login {
  width: 100%;
  margin-top: 10px;
}

body.aw-login-themed #form-login .MuiGrid-container {
  row-gap: 18px;
}

body.aw-login-themed #form-login .MuiFormControl-root {
  width: 100%;
}

body.aw-login-themed #form-login .MuiInputLabel-root {
  color: #6f667a;
  font-weight: 650;
}

body.aw-login-themed #form-login .MuiOutlinedInput-root {
  min-height: 52px;
  border-radius: 14px;
  background: #fffefb;
  box-shadow: 0 1px 0 rgba(36, 33, 43, 0.04);
}

body.aw-login-themed #form-login .MuiOutlinedInput-root fieldset {
  border-color: rgba(36, 33, 43, 0.16);
}

body.aw-login-themed #form-login .MuiOutlinedInput-root:hover fieldset {
  border-color: rgba(108, 63, 245, 0.48);
}

body.aw-login-themed #form-login .MuiOutlinedInput-root.Mui-focused fieldset {
  border-width: 2px;
  border-color: #6c3ff5;
}

body.aw-login-themed #form-login .MuiInputBase-input {
  color: #24212b;
  font-size: 1rem;
}

body.aw-login-themed #remember-checkbox.Mui-checked,
body.aw-login-themed #remember-checkbox.MuiCheckbox-root.Mui-checked {
  color: #6c3ff5;
}

body.aw-login-themed #form-login .MuiFormControlLabel-label {
  color: #5e5668;
  font-size: 0.94rem;
}

body.aw-login-themed #sign-in-button,
body.aw-login-themed #passkey-sign-in-button {
  min-height: 52px;
  border-radius: 14px;
  background: #6c3ff5;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: 0 14px 26px rgba(108, 63, 245, 0.26);
  text-transform: none;
}

body.aw-login-themed #sign-in-button:hover,
body.aw-login-themed #passkey-sign-in-button:hover {
  background: #5b31dd;
  box-shadow: 0 16px 30px rgba(108, 63, 245, 0.32);
}

body.aw-login-themed #reset-password-button {
  color: #6c3ff5;
  border: 0;
  background: transparent;
  font-weight: 700;
  text-transform: none;
}

body.aw-login-themed #first-factor-stage.aw-themed-stage a {
  color: #6c3ff5;
}

.aw-character-panel {
  grid-column: 1;
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(28px, 4.8vw, 56px);
  box-sizing: border-box;
  color: #fffaf0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(232, 215, 84, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(255, 155, 107, 0.12), transparent 42%),
    #23202d;
  background-size: 22px 22px, 22px 22px, auto, auto, auto;
}

.aw-panel-brand,
.aw-panel-links {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

.aw-panel-brand {
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 780;
}

.aw-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.08);
  color: #e8d754;
  font-size: 1.15rem;
}

.aw-panel-links {
  gap: clamp(18px, 4vw, 34px);
  color: rgba(255, 250, 240, 0.64);
  font-size: 0.86rem;
}

.aw-panel-links span {
  white-space: nowrap;
}

.aw-stage {
  position: relative;
  z-index: 2;
  width: min(92%, 560px);
  height: clamp(310px, 56vh, 450px);
  margin: auto;
}

.aw-character {
  --face-x: 0px;
  --face-y: 0px;
  --body-skew: 0deg;
  position: absolute;
  bottom: 0;
  transform: skewX(var(--body-skew));
  transform-origin: bottom center;
  transition:
    height 650ms ease,
    transform 650ms ease,
    border-radius 250ms ease;
  will-change: transform;
}

.aw-character .aw-eyes,
.aw-character .aw-face {
  position: absolute;
  display: flex;
  transform: translate(var(--face-x), var(--face-y));
  transition: transform 120ms ease-out;
}

.aw-eye {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fffefb;
  overflow: hidden;
  transition: height 140ms ease;
}

.aw-eye::after,
.aw-pupil,
.aw-dot {
  display: block;
  border-radius: 999px;
  background: #2d2d2d;
  content: "";
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
  transition: transform 100ms ease-out;
}

.aw-pupil {
  width: var(--pupil-size, 7px);
  height: var(--pupil-size, 7px);
}

.aw-dot {
  width: 12px;
  height: 12px;
}

.aw-purple {
  left: 13%;
  z-index: 1;
  width: 180px;
  height: 400px;
  border-radius: 12px 12px 0 0;
  background: #6c3ff5;
}

.aw-purple .aw-eyes {
  top: 42px;
  left: 46px;
  gap: 30px;
}

.aw-purple .aw-eye {
  --eye-height: 18px;
  width: 18px;
  height: 18px;
}

.aw-black {
  left: 44%;
  z-index: 2;
  width: 120px;
  height: 310px;
  border-radius: 10px 10px 0 0;
  background: #2d2d2d;
}

.aw-black .aw-eyes {
  top: 34px;
  left: 26px;
  gap: 24px;
}

.aw-black .aw-eye {
  --eye-height: 16px;
  width: 16px;
  height: 16px;
}

.aw-orange {
  left: 0;
  z-index: 3;
  width: 240px;
  height: 200px;
  border-radius: 120px 120px 0 0;
  background: #ff9b6b;
}

.aw-orange .aw-face {
  top: 92px;
  left: 84px;
  gap: 30px;
}

.aw-yellow {
  left: 57%;
  z-index: 4;
  width: 140px;
  height: 230px;
  border-radius: 70px 70px 0 0;
  background: #e8d754;
}

.aw-yellow .aw-face {
  top: 42px;
  left: 52px;
  gap: 24px;
}

.aw-mouth {
  position: absolute;
  top: 88px;
  left: 40px;
  width: 78px;
  height: 4px;
  border-radius: 999px;
  background: #2d2d2d;
  transform: translate(var(--face-x), var(--face-y));
  transition: transform 120ms ease-out;
}

body.aw-is-typing .aw-purple {
  height: 440px;
}

body.aw-is-typing .aw-black {
  transform: skewX(calc(var(--body-skew) + 8deg)) translateX(18px);
}

body.aw-password-filled:not(.aw-password-visible) .aw-purple {
  height: 440px;
  transform: skewX(calc(var(--body-skew) - 12deg)) translateX(40px);
}

body.aw-password-visible .aw-character {
  transform: skewX(0deg);
}

body.aw-password-visible .aw-purple .aw-eyes {
  top: 36px;
  left: 20px;
}

body.aw-password-visible .aw-black .aw-eyes {
  top: 28px;
  left: 10px;
}

body.aw-password-visible .aw-orange .aw-face {
  top: 86px;
  left: 52px;
}

body.aw-password-visible .aw-yellow .aw-face {
  top: 36px;
  left: 22px;
}

body.aw-password-visible .aw-yellow .aw-mouth {
  left: 12px;
}

body.aw-password-visible .aw-purple .aw-pupil {
  animation: aw-purple-peek 2.8s ease-in-out infinite;
}

.aw-purple .aw-eye {
  animation: aw-blink 6.2s ease-in-out infinite;
}

.aw-black .aw-eye {
  animation: aw-blink 5.5s ease-in-out 1.3s infinite;
}

@keyframes aw-blink {
  0%,
  93%,
  100% {
    height: var(--eye-height, 18px);
  }
  95%,
  97% {
    height: 2px;
  }
}

@keyframes aw-purple-peek {
  0%,
  50%,
  100% {
    transform: translate(-4px, -4px);
  }
  65%,
  82% {
    transform: translate(4px, 5px);
  }
}

@media (max-width: 900px) {
  body.aw-login-themed #first-factor-stage.aw-themed-stage {
    display: flex !important;
    min-height: 100vh !important;
    padding: clamp(22px, 7vw, 42px);
    background: #fffaf0;
  }

  body.aw-login-themed #first-factor-stage.aw-themed-stage > .MuiContainer-root {
    width: min(100%, 460px);
    padding: 0 !important;
  }

  .aw-character-panel {
    display: none;
  }

  body.aw-login-themed
    #first-factor-stage.aw-themed-stage
    > .MuiContainer-root
    > .MuiGrid-container
    > .MuiGrid-root:first-child {
    display: block;
    margin-bottom: 28px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  body.aw-login-themed #first-factor-stage.aw-themed-stage {
    padding: 20px;
  }

  body.aw-login-themed #first-factor-stage.aw-themed-stage h5,
  body.aw-login-themed #first-factor-stage.aw-themed-stage .MuiTypography-h5 {
    font-size: 1.8rem;
  }

  body.aw-login-themed #form-login .MuiGrid-container {
    row-gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-character,
  .aw-character .aw-eyes,
  .aw-character .aw-face,
  .aw-pupil,
  .aw-dot,
  .aw-eye,
  .aw-mouth {
    transition: none !important;
    animation: none !important;
  }
}
