#auth-screen.auth-screen {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: max(28px, env(safe-area-inset-top)) max(24px, 10vw, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(24px, 10vw, env(safe-area-inset-left));
  background: linear-gradient(90deg, #080f0deb, #080f0dbf 32%, #080f0d09 76%),
    url('/assets/Images/Menu/background.webp') center / cover no-repeat, #101916;
  color: #eef6f0;
  font: 400 17px/1.35 RobotoCondensed, sans-serif;
}

.email-auth-panel {
  width: min(100%, 390px);
  margin-block: auto;
}

.email-auth-brand {
  margin-bottom: 18px;
  font-size: clamp(52px, 6vw, 90px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .025em;
}

.email-auth-brand span {
  color: #a4dfb4;
  font-weight: 400;
}

#email-auth-title {
  margin-bottom: 13px;
  font-size: 28px;
  font-weight: 500;
}

.email-auth-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 15px;
  border-bottom: 1px solid #728e7c71;
}

#auth-screen button {
  min-height: 40px;
  border: 1px solid transparent;
  background: #101e19d9;
  color: inherit;
}

#auth-screen button:focus-visible,
#email-auth-form input:focus-visible {
  outline: 2px solid #a4dfb4;
  outline-offset: 2px;
}

#auth-screen .email-auth-modes button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
}

#auth-screen .email-auth-modes button[aria-pressed="true"] {
  border-bottom-color: #a4dfb4;
  color: #c5f6d1;
}

#email-auth-form {
  display: grid;
  gap: 10px;
}

#email-auth-form label {
  display: grid;
  gap: 4px;
}

#email-auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid #728e7cd4;
  border-radius: 4px;
  background: #0b1512ed;
  color: inherit;
}

#email-password-hint {
  color: #b7cfbf;
  font-size: 14px;
}

.email-captcha {
  display: grid;
  gap: 7px;
}

#auth-screen #email-captcha-refresh {
  width: min(100%, 222px);
  min-height: 66px;
  padding: 0;
  overflow: hidden;
  border-color: #728e7cd4;
  border-radius: 4px;
}

#email-captcha-refresh img {
  display: block;
  width: 100%;
  height: auto;
}

#auth-screen #email-captcha-refresh:hover:enabled {
  border-color: #b9eac8;
}

#email-captcha-answer {
  font-family: ui-monospace, monospace;
  letter-spacing: .14em;
}

.email-auth-status {
  color: #f4cfaf;
  font-size: 15px;
}

.email-auth-status:empty {
  display: none;
}

#auth-screen #email-auth-submit {
  min-height: 45px;
  border: 1px solid #9cd9ad;
  border-radius: 4px;
  background: linear-gradient(100deg, #477458, #294d3b);
  font-weight: 600;
}

#auth-screen #email-auth-submit:hover:enabled {
  background: #3f694b;
}

@media (max-width: 700px) {
  #auth-screen.auth-screen {
    align-items: center;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
    background-position: center, 67% center;
    background-image: linear-gradient(#080f0ddd, #080f0de8), url('/assets/Images/Menu/background.webp');
  }
}
