/* Astra Anywhere authentication experience.
 * Presentation only. Authorization remains enforced by Supabase Auth + RLS.
 */
.login-card {
  gap: 0;
}

.auth-lead {
  max-width: 38ch;
  line-height: 1.55;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field > span {
  margin: 0;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  padding-right: 92px;
}

.auth-inline-action,
.auth-link {
  border: 0;
  background: transparent;
  color: #c8cfda;
  padding: 5px 2px;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(200, 207, 218, .35);
  text-underline-offset: 3px;
}

.auth-inline-action {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 8px;
  text-decoration: none;
  color: #aeb7c7;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 8px;
}

.auth-hint {
  margin: -4px 0 0;
  color: #7f899a;
  font-size: 12px;
  line-height: 1.45;
}

.auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  padding: 0;
  line-height: 1.5;
}

.auth-message[data-tone="success"] {
  padding: 12px 14px;
  border: 1px solid rgba(94, 210, 154, .24);
  border-radius: 12px;
  background: rgba(94, 210, 154, .07);
  color: #aee8cc;
}

.auth-message[data-tone="error"] {
  color: #ff8ba4;
}

.auth-reset {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #2a3140;
  border-radius: 16px;
  background: #121722;
}

.auth-reset h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.auth-reset .primary {
  width: 100%;
  margin-top: 14px;
}

.auth-reset .auth-link {
  display: block;
  margin: 10px auto 0;
}

.auth-trust {
  margin: 18px 0 0;
  color: #737e90;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

html[data-auth-recovery="true"] #appView {
  display: none !important;
}

html[data-auth-recovery="true"] #loginView.hidden {
  display: flex !important;
}

@media (max-width: 520px) {
  .login-card {
    width: min(100% - 36px, 440px);
    justify-content: flex-start;
    padding: max(42px, env(safe-area-inset-top)) 0 32px;
  }

  .login-card h1 {
    font-size: 36px;
  }

  .stack {
    margin-top: 22px;
  }

  .primary,
  .login-card .secondary {
    min-height: 48px;
  }
}
