
.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  background: var(--bg);
  padding: 2rem;
}

.login-screen__inner {
  min-height: calc(100vh - 4rem);
  min-height: calc(100dvh - 4rem);
  max-width: 24rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
}

.login-screen__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.login-screen__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.login-screen__brand img {
  width: 11rem;
  height: 11rem;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.login-screen__brand h1 {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-card {
  width: min(340px, 100%);
  background: var(--surface);
  border-radius: 2px;
  padding: 1.75rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-card label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.login-card__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.login-card .login-card__fields input {
  appearance: none;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-card .login-card__fields input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: var(--surface);
}

.login-card__passkey-button {
  margin-top: 1rem;
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.login-card__signup-button {
  margin-top: 0.75rem;
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.login-card .status-banner {
  margin-bottom: 0;
}

.login-card__selection {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.login-card__tenant-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.login-card__tenant-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.login-card__tenant-button:hover:not([disabled]) {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.login-card__tenant-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.login-card__tenant-button.is-loading {
  opacity: 0.6;
}

.login-card__back-button {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.login-card__back-button:hover {
  text-decoration: none;
}

.login-card__back-button:disabled {
  opacity: 0.6;
  cursor: default;
}
