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

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #121212;
  --text: #efefef;
  --text-muted: #a3a3a3;
  --accent: #f5a623;
  --accent-hover: #dc9520;
  --surface-deep: #0d0d0d;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--surface-deep);
  font-family: "Open Sans", sans-serif;
  color: var(--text);
}

#root {
  min-height: 100vh;
}

.auth-shell {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  max-width: 100vw;
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
}

.auth-shell__logo {
  margin-bottom: 0.15rem;
}

.auth-shell__status {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  min-height: 3.75rem;
}

.auth-shell__indicator {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
}

.auth-shell__message {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.auth-shell__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(239, 239, 239, 0.2);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: auth-shell-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.auth-shell__emoji {
  display: none;
  font-size: 1.15rem;
  line-height: 1;
}

.auth-shell__status[data-state="done"] .auth-shell__spinner,
.auth-shell__status[data-state="error"] .auth-shell__spinner {
  display: none;
}

.auth-shell__status[data-state="done"] .auth-shell__emoji,
.auth-shell__status[data-state="error"] .auth-shell__emoji {
  display: block;
}

@keyframes auth-shell-spin {
  to {
    transform: rotate(360deg);
  }
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.logo {
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.5px;
  display: flex;
  gap: 4px;
  justify-content: left;
  align-items: baseline;
}

.logo-pied {
  font-family: "Raleway", "Open Sans", sans-serif;
  font-weight: 600;
}

.logo-os {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
}