:root {
  color-scheme: dark;
  font-family: Cantarell, "Noto Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body.login-shell {
  overflow: hidden;
  color: #f7f7f8;
  background: #242328;
  font-family: inherit;
}

button,
input {
  font: inherit;
}

.app-main-login {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 420px;
  padding: 0;
}

.gdm-screen {
  position: relative;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #242328;
}

.gdm-topbar {
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.gdm-clock {
  justify-self: center;
  font-style: normal;
  white-space: nowrap;
}

.gdm-login-card {
  display: grid;
  align-self: center;
  justify-self: center;
  width: min(352px, calc(100vw - 36px));
  transform: translateY(-16px);
}

.gdm-login-form {
  display: grid;
  width: 100%;
}

.gdm-user-tile {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 82px;
  padding: 8px 18px 8px 10px;
  background: #3b3a40;
  border: 2px solid #6397c9;
  border-radius: 15px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 7px 18px rgba(0, 0, 0, 0.16);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.gdm-user-tile:focus-within {
  background: #414047;
  border-color: #75a9db;
  box-shadow: 0 0 0 2px rgba(82, 148, 210, 0.24), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.gdm-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #ffffff;
  background: #56555b;
  border-radius: 50%;
}

.gdm-avatar svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.gdm-user-input,
.gdm-password-input {
  min-width: 0;
  color: #ffffff;
  caret-color: #ffffff;
  outline: 0;
}

.gdm-user-input {
  width: 100%;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 700;
}

.gdm-user-input::placeholder,
.gdm-password-input::placeholder {
  color: rgba(255, 255, 255, 0.68);
  opacity: 1;
}

.gdm-password-row {
  position: relative;
  margin-top: 12px;
}

.gdm-password-input {
  width: 100%;
  height: 46px;
  padding: 0 52px 0 14px;
  background: #343338;
  border: 1px solid #626168;
  border-radius: 9px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.gdm-password-input:hover {
  background: #39383e;
  border-color: #737279;
}

.gdm-password-input:focus {
  background: #3b3a40;
  border-color: #6da5da;
  box-shadow: 0 0 0 2px rgba(82, 148, 210, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.26);
}

.gdm-submit {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #ffffff;
  background: #55545a;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 120ms ease, transform 80ms ease;
}

.gdm-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gdm-submit:hover,
.gdm-submit:focus-visible {
  background: #3584e4;
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.gdm-submit:active {
  transform: scale(0.94);
}

.gdm-remember {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: center;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.gdm-remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #3584e4;
}

.gdm-login-error:empty,
.gdm-field-error:empty {
  display: none;
}

.gdm-login-error {
  order: -1;
}

.gdm-login-error ul {
  margin: 0 0 12px;
  padding: 9px 12px;
  color: #ffffff;
  background: #a51d2d;
  border: 1px solid #d24b5d;
  border-radius: 9px;
  font-size: 13px;
  list-style: none;
  text-align: center;
}

.gdm-field-error {
  margin-top: 5px;
  color: #ffb4bc;
  font-size: 12px;
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-height: 560px) {
  .gdm-screen {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .gdm-topbar {
    height: 36px;
  }

  .gdm-login-card {
    transform: none;
  }

}

@media (max-width: 480px) {
  .gdm-topbar {
    padding: 0 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
