.gate {
  min-height: 100dvh;
  display: grid;
  align-content: start;
  justify-items: center;
  background: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
  overflow: auto;
  padding: max(8%, env(safe-area-inset-top, 0px)) 16px max(32px, env(safe-area-inset-bottom));
}
.gate * { box-sizing: border-box; }
.gate-box { width: min(320px, 100%); }
.gate-box h1 {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  color: #3c434a;
}
.gate-logo {
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}
.gate-logo .brand-lockup { height: 40px; width: auto; display: block; }
.gate .brand-lockup-word {
  fill: #12101A;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.gate-card {
  margin-top: 4px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid #c3c4c7;
}
.gate-card label {
  display: block;
  margin: 16px 0 4px;
  font-size: 14px;
  font-weight: 400;
  color: #3c434a;
}
.gate-card > label:first-of-type { margin-top: 0; }
.gate-card input:not([type="hidden"]):not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #2c3338;
  font: inherit;
  font-size: 16px;
  line-height: 1.333;
}
.gate-card input:focus {
  outline: none;
  border-color: #673de6;
  box-shadow: 0 0 0 1px #673de6;
}
.gate-card input[type="password"]::-ms-reveal,
.gate-card input[type="password"]::-ms-clear { display: none; }
.gate-pass { position: relative; display: block; }
.gate-pass input { padding-right: 84px; }
.gate-eye {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #673de6;
  font-size: 13px;
  font-weight: 500;
}
.gate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.gate-keep {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #3c434a;
  cursor: pointer;
}
.gate-keep input[type="checkbox"] {
  appearance: auto;
  width: 16px;
  height: 16px;
  margin: 0;
}
.gate-row button[type="submit"] {
  margin: 0;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #673de6;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}
.gate-row button[type="submit"]:disabled { opacity: 0.7; }
.gate-card .err,
.gate-card .ok {
  margin: 0 0 16px;
  padding: 8px 12px;
  font-size: 13px;
}
.gate-card .err { background: #fcf0f1; border-left: 4px solid #d63638; color: #3c434a; }
.gate-card .ok { background: #edfaef; border-left: 4px solid #00a32a; color: #1d2327; }
.gate-back {
  margin: 20px 0 0;
  padding: 0 24px;
  font-size: 13px;
}
.gate-back a { color: #673de6; text-decoration: none; }

@media (max-width: 520px) {
  .gate {
    padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  }
  .gate-box { width: min(400px, 100%); }
  .gate-card { padding: 22px 18px; }
  .gate-card input:not([type="hidden"]):not([type="checkbox"]) {
    height: 44px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .gate-pass input { padding-right: 88px; }
  .gate-eye { height: 44px; }
  .gate-row { flex-wrap: wrap; align-items: stretch; }
  .gate-row button[type="submit"] {
    width: 100%;
    height: 44px;
    min-height: 44px;
    font-size: 15px;
  }
}
