.native-login-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #172136 0%, #212d45 72%, #34415a 100%);
  color: #fff;
  overflow-y: auto;
}

.native-login-gate[hidden] { display: none; }

.native-login-gate form {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  padding: 30px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(23, 33, 54, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.native-login-gate form[hidden] { display: none; }

.native-login-brand { display: flex; align-items: center; min-height: 70px; padding: 8px 12px; border-radius: 10px; background: #fff; }
.native-login-brand img { display: block; width: min(100%, 290px); height: auto; margin: auto; }
.native-login-brand strong { font: 700 48px/1 Georgia, serif; }
.native-login-brand span { color: #ffc03d; font-size: 12px; font-weight: 800; }
.native-login-gate p { margin: 4px 0 0; color: #ffc03d; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.native-login-gate h1 { margin: 0; font-size: 30px; }
.native-login-copy { color: #dbe7f0; line-height: 1.45; }
.native-login-gate label { display: grid; gap: 6px; font-weight: 700; }
.native-login-gate input { min-height: 48px; padding: 0 13px; border: 1px solid #8294a6; border-radius: 9px; background: #fff; color: #101820; font-size: 16px; }
.native-login-gate button { min-height: 50px; border: 0; border-radius: 999px; background: #ffc03d; color: #212d45; font-size: 16px; font-weight: 800; }
.native-login-gate .offline-entry { border: 1px solid #8ea2b5; background: transparent; color: #fff; }
.native-login-gate output { min-height: 20px; color: #ffd0c8; text-align: center; }

@media (max-width: 520px), (max-height: 720px) {
  .native-login-gate { place-items: start center; padding: 12px; }
  .native-login-gate form { gap: 10px; max-height: calc(100dvh - 24px); padding: 18px 16px; }
  .native-login-brand { min-height: 52px; }
  .native-login-brand img { max-height: 54px; width: auto; max-width: 100%; }
  .native-login-gate h1 { font-size: 25px; }
}

.native-logout {
  border: 1px solid #65717b;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.session-user {
  margin-left: auto;
  min-width: 0;
  text-align: right;
  line-height: 1.15;
}
.session-user strong,
.session-user span { display: block; }
.session-user strong { color: #fff; font-size: .82rem; }
.session-user span { margin-top: 3px; color: #d9deea; font-size: .65rem; white-space: nowrap; }
.session-user[hidden] { display: none !important; }
.notice[hidden] { display: none !important; }
.session-user + .install-app { margin-left: 0; }
.session-user ~ .sync { margin-left: 0; }

@media (max-width: 920px) {
  .session-user span { display: none; }
  .session-user strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 720px) {
  .session-user { margin-left: auto; }
  .session-user strong { max-width: 105px; font-size: .72rem; }
  .android-download { display: none; }
}
