/* webstyle.css — auth-specific styles for the multi-user web version.
   Loaded alongside the shared style.css, not instead of it. */

/* ---- Loading splash (brief, while anonymous session starts) ---- */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--text-muted);
  animation: spin 0.8s linear infinite;
}

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

/* ---- Auth UI (inside Account modal) ---- */
.auth-forms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-google-btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  font-weight: 500;
}

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-btn-row {
  display: flex;
  gap: 8px;
}

.auth-btn-row button {
  flex: 1;
}

.auth-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin: 4px 0 0;
}

.auth-signed-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-user-info strong {
  font-size: 15px;
}

.auth-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.auth-name-input {
  flex: 1;
  padding: 6px 8px;
}

/* ---- Hide app container until session is ready ---- */
#app-container.hidden {
  display: none;
}

/* ---- Cloud sync status (Account modal) ---- */
.sync-status {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 16px;
}
.sync-status.sync-saved { color: #4ea87a; }
.sync-status.sync-error { color: #d46a6a; }
.sync-status.sync-syncing,
.sync-status.sync-loading { font-style: italic; }

