/**
 * hub-auth.css — Stili condivisi login / register (usa variabili hub-theme).
 */
.auth-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--hub-bg);
  color: var(--hub-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--hub-surface);
  border-bottom: 1px solid var(--hub-border);
  box-shadow: var(--hub-shadow);
}

.auth-topbar a {
  color: var(--hub-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.auth-topbar a:hover { color: var(--hub-accent); }

.auth-theme-toggle {
  display: inline-flex;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--hub-surface-2);
}

.auth-theme-toggle button {
  border: none;
  background: transparent;
  color: var(--hub-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.auth-theme-toggle button.active {
  background: var(--hub-accent-soft);
  color: var(--hub-accent);
}

.auth-card {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--hub-shadow);
  margin-top: 3rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--hub-text);
  text-align: center;
}

.auth-card label {
  display: block;
  font-size: 0.85rem;
  color: var(--hub-text-muted);
  margin-bottom: 0.3rem;
}

.auth-card input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--hub-surface-2);
  border: 1px solid var(--hub-border);
  border-radius: 6px;
  color: var(--hub-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--hub-surface-2) inset !important;
  box-shadow: 0 0 0 1000px var(--hub-surface-2) inset !important;
  -webkit-text-fill-color: var(--hub-text) !important;
  caret-color: var(--hub-text);
}

.auth-card button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--hub-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.auth-card button[type="submit"]:hover { background: var(--hub-accent-hover); }
.auth-card button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error { color: var(--hub-danger); font-size: 0.85rem; margin-bottom: 1rem; }
.auth-success { color: var(--hub-success); font-size: 0.9rem; text-align: center; padding: 1rem 0; }

.auth-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--hub-text-muted);
}

.auth-footer a { color: var(--hub-accent); text-decoration: none; }

.auth-subtitle {
  text-align: center;
  color: var(--hub-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.auth-badge {
  display: inline-block;
  background: var(--hub-accent-soft);
  border: 1px solid var(--hub-border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  color: var(--hub-success);
  margin-bottom: 1rem;
}
