@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

#loginScreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f6f7f9;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#loginScreen,
#loginScreen * {
  box-sizing: border-box;
}

body.auth-required,
body.show-login {
  overflow: hidden;
}

body:not(.auth-required):not(.show-login) #loginScreen {
  display: none;
}

body.auth-required #loginScreen,
body.show-login #loginScreen {
  display: flex;
}

#loginScreen .loginCard {
  width: 100%; max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#loginScreen .loginLogo {
  width: 182px;
  height: auto;
  max-height: none;
  align-self: center;
  margin: 0 0 10px;
  object-fit: contain;
}

#loginScreen .loginService {
  align-self: center;
  margin: -4px 0 8px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

#loginScreen .formRow {
  width: 100%;
  margin: 0;
}

#loginScreen input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: 500 14px/1 "Poppins", system-ui, sans-serif;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#loginScreen input::placeholder {
  color: #8b95a5;
}

#loginScreen input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

#loginScreen .authSubmit {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font: 700 14px/1 "Poppins", system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

#loginScreen .authSubmit:hover:not(:disabled) {
  background: #2d3748;
  transform: translateY(-1px);
}

#loginScreen .authSubmit:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}

#loginScreen .status {
  width: 100%;
  min-height: 18px;
  margin: 0;
  color: #667085;
  font: 500 12px/1.45 "Poppins", system-ui, sans-serif;
  text-align: center;
}

@media (max-width: 480px) {
  #loginScreen {
    align-items: flex-start;
    padding-top: 18vh;
  }

  #loginScreen .loginCard {
    width: 100%;
    max-width: 320px;
  }
}
