:root {
  color-scheme: light;
}

body.ua-auth-pending {
  margin: 0;
  min-height: 100vh;
  background: #edf2f8;
}

.ua-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top left, rgba(15, 98, 254, 0.18), transparent 42%),
    linear-gradient(145deg, #f4f7fb 0%, #e8eef8 100%);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.ua-auth-card {
  width: min(430px, 100%);
  box-sizing: border-box;
  padding: 34px;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(31, 52, 78, 0.16);
}

.ua-auth-logo {
  display: block;
  width: min(210px, 70%);
  max-height: 84px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.ua-auth-card h1 {
  margin: 0;
  color: #172b4d;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.2;
  text-align: center;
}

.ua-auth-card > p {
  margin: 8px 0 26px;
  color: #5c6f87;
  text-align: center;
}

.ua-auth-form {
  display: grid;
  gap: 10px;
}

.ua-auth-form label {
  margin-top: 6px;
  color: #24364b;
  font-size: 0.9rem;
  font-weight: 700;
}

.ua-auth-form input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #aebdce;
  border-radius: 7px;
  background: #fff;
  color: #142033;
  font: inherit;
}

.ua-auth-form input:focus {
  border-color: #0f62fe;
  outline: 3px solid rgba(15, 98, 254, 0.16);
}

.ua-auth-primary {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 7px;
  background: #0f62fe;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ua-auth-primary:hover:not(:disabled) {
  background: #0353e9;
}

.ua-auth-primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ua-auth-alert,
.ua-auth-status {
  margin: 14px 0;
  padding: 12px;
  border-radius: 7px;
  line-height: 1.4;
}

.ua-auth-alert {
  border: 1px solid #da1e28;
  background: #fff1f1;
  color: #750e13;
}

.ua-auth-status {
  background: #edf5ff;
  color: #143d75;
  text-align: center;
}

.ua-auth-session-bar {
  position: fixed;
  z-index: 5000;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 8px 10px 8px 14px;
  border: 1px solid #c7d2e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(20, 36, 58, 0.18);
  color: #31445c;
  font: 0.82rem Inter, Arial, Helvetica, sans-serif;
  backdrop-filter: blur(8px);
}

.ua-auth-session-bar button {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #253858;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 520px) {
  .ua-auth-page {
    padding: 12px;
  }

  .ua-auth-card {
    padding: 24px 18px;
  }

  .ua-auth-session-bar {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: space-between;
  }
}

.ua-auth-client-access {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #53657d;
}

@media (max-width: 760px) {
  .ua-auth-session-bar {
    flex-wrap: wrap;
    border-radius: 14px;
  }

  .ua-auth-client-access {
    order: 3;
    width: 100%;
    max-width: none;
  }
}
