/* Auth gate — same navy / cyan / login treatment as the webapp */

.rev-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #101820;
}

.rev-auth-card {
  width: min(100%, 420px);
  margin: auto;
  background: #ffffff;
  color: #171B1F;
  border-radius: 12px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.rev-auth-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 220px;
  margin-bottom: 1.5rem;
}

.rev-auth-title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #171B1F;
  line-height: 1.25;
}

.rev-auth-muted {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4D4B5E;
  font-weight: 300;
}

.rev-auth-email {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-family: var(--md-code-font-family, monospace);
  color: #4D4B5E;
}

.rev-auth-form {
  display: flex;
  flex-direction: column;
}

.rev-auth-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4D4B5E;
  margin-bottom: 4px;
}

.rev-auth-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #767389;
  border-radius: 13px;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  background: #fff;
  color: #171B1F;
  margin-bottom: 0.75rem;
}

.rev-auth-input:focus {
  outline: none;
  border-color: #3271A4;
  box-shadow: 0 0 0 2px rgba(50, 113, 164, 0.2);
}

.rev-auth-error {
  margin: 0 0 0.75rem;
  color: #EB4B63;
  font-size: 0.85rem;
}

.rev-auth-btn {
  margin-top: 0.25rem;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  background: #5476A6;
  color: #ffffff;
}

.rev-auth-btn:hover:not(:disabled) {
  background: #3271A4;
}

.rev-auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rev-auth-btn-secondary {
  background: transparent;
  color: #4D4B5E;
  border: 1px solid #E5E5EA;
}

.rev-auth-btn-secondary:hover:not(:disabled) {
  background: #F2F2F7;
}

.rev-auth-toolbar {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.55rem 0.4rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  color: #4D4B5E;
  box-shadow: 0 4px 18px rgba(16, 24, 32, 0.16);
  border: 1px solid #E5E5EA;
  font-size: 0.75rem;
  max-width: calc(100vw - 1.5rem);
}

.rev-auth-toolbar-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.rev-auth-toolbar-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: #3271A4;
  color: #ffffff;
  flex-shrink: 0;
}

html.rev-auth-pending #rev-auth-root {
  visibility: visible !important;
}

/* Full-bleed navy while waiting — no flash of Material chrome */
html.rev-auth-pending body {
  background: #101820;
}
